Decouple mock_request_exception from StubBotTestCase.
Tests that need mock_request_exception can just import it directly now.
This commit is contained in:
parent
1dbb73a1c8
commit
971b48cbfc
2 changed files with 2 additions and 6 deletions
|
@ -1,6 +1,7 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
from zulip_bots.test_lib import StubBotTestCase
|
||||
from zulip_bots.request_test_lib import mock_request_exception
|
||||
|
||||
class TestWikipediaBot(StubBotTestCase):
|
||||
bot_name = "wikipedia"
|
||||
|
@ -65,5 +66,5 @@ class TestWikipediaBot(StubBotTestCase):
|
|||
# Request Exception
|
||||
bot_request = 'Z'
|
||||
bot_response = None
|
||||
with self.mock_request_exception():
|
||||
with mock_request_exception():
|
||||
self.verify_reply(bot_request, bot_response)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue