Add a command line option to run.py for bot config files.
Before this change, we were looking for config files in default locations in source control, which is not a good place to look for them. Now `run.py` and friends have a command line argument where users can specify the config files. Note that the change to server.py is only a partial fix to make it so that bots that don't use third party config files won't crash. That program needs an overhaul, anyway.
This commit is contained in:
parent
57c90ddca0
commit
536ba1843a
5 changed files with 104 additions and 25 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, None)
|
||||
self.mock_bot_handler = self.MockClass(None, 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