From 53749592c8443f13879ea9264a22eea150ca9f47 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Fri, 15 Sep 2017 16:44:57 +0200 Subject: test: Make mock_weechat a dependency of realish_eventrouter Setting up the eventrouter for the tests involves code that requires the config object to be set, so it has to depend on mock_weechat. This didn't cause a problem when all the tests were run since the first test depends on mock_weechat so it would be set up. However, if you tried to run a single test that depended on realish_eventrouter, but not mock_weechat, it would fail. --- _pytest/test_linkifytext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_pytest/test_linkifytext.py') diff --git a/_pytest/test_linkifytext.py b/_pytest/test_linkifytext.py index 010a48b..56bf1b5 100644 --- a/_pytest/test_linkifytext.py +++ b/_pytest/test_linkifytext.py @@ -6,7 +6,7 @@ from wee_slack import linkify_text # assert False -def test_linkifytext_does_partial_html_entity_encoding(mock_weechat, realish_eventrouter): +def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter): team = realish_eventrouter.teams.values()[0] channel = team.channels.values()[0] -- cgit