bots: Require bots_details in ExternalBotHandler.
This parameter was defaulting to a dictionary, which is a classic Python pitfall.
This commit is contained in:
parent
ef30261858
commit
8a15452525
3 changed files with 3 additions and 3 deletions
|
@ -44,7 +44,7 @@ class BotTestCaseBase(TestCase):
|
|||
# Mocking ExternalBotHandler
|
||||
self.patcher = patch('zulip_bots.lib.ExternalBotHandler', autospec=True)
|
||||
self.MockClass = self.patcher.start()
|
||||
self.mock_bot_handler = self.MockClass(None, None)
|
||||
self.mock_bot_handler = self.MockClass(None, None, None)
|
||||
self.mock_client = MagicMock()
|
||||
self.mock_client.get_storage.return_value = {'result': 'success', 'state': {}}
|
||||
self.mock_client.update_storage.return_value = {'result': 'success'}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue