aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest
diff options
context:
space:
mode:
authorBen Kelly <bk@ancilla.ca>2017-07-12 22:23:26 -0400
committerBen Kelly <btk@google.com>2017-07-12 22:30:24 -0400
commitc9731ec430bb9524d5870b28177bd95279d73362 (patch)
tree93930d4b4d3b40c48738b048c33a983b91466c3c /_pytest
parentb3ea515b1ec6e3192950c1607954f9418527291c (diff)
downloadwee-slack-c9731ec430bb9524d5870b28177bd95279d73362.tar.gz
Fix the tests
Not everything that needed to be mocked out was, and there was also an issue with every instance of PluginConfig sharing the same mutable settings field and thus stomping on each other if you initialized more than one in the same test. Signed-off-by: Ben Kelly <bk@ancilla.ca> Signed-off-by: Ben Kelly <btk@google.com>
Diffstat (limited to '_pytest')
-rw-r--r--_pytest/conftest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/_pytest/conftest.py b/_pytest/conftest.py
index 7a6f39a..43d4a74 100644
--- a/_pytest/conftest.py
+++ b/_pytest/conftest.py
@@ -71,6 +71,10 @@ class FakeWeechat():
return "0x8a8a8a8b"
def prefix(self, type):
return ""
+ def config_get_plugin(self, key):
+ return ""
+ def color(self, name):
+ return ""
def __getattr__(self, name):
def method(*args):
pass
@@ -87,6 +91,7 @@ def mock_weechat():
wee_slack.slack_debug = "debug_buffer_ptr"
wee_slack.STOP_TALKING_TO_SLACK = False
wee_slack.proc = {}
+ wee_slack.weechat_version = 0x10500000
pass