diff options
-rw-r--r-- | _pytest/conftest.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/_pytest/conftest.py b/_pytest/conftest.py index 951797a..8b24559 100644 --- a/_pytest/conftest.py +++ b/_pytest/conftest.py @@ -56,9 +56,8 @@ class FakeWeechat(): WEECHAT_RC_ERROR = 0 WEECHAT_RC_OK = 1 WEECHAT_RC_OK_EAT = 2 - def __init__(self): - pass + self.config = {} #print("INITIALIZE FAKE WEECHAT") def prnt(*args): output = "(" @@ -79,9 +78,11 @@ class FakeWeechat(): def prefix(self, type): return "" def config_get_plugin(self, key): - return "" + return self.config.get(key, "") def config_get(self, key): return "" + def config_set_plugin(self, key, value): + self.config[key] = value def config_string(self, key): return "" def color(self, name): |