zulip_botserver: Fix path finding for external bots.

The previous implementation to locate the `bot_dir` is unfortunately
wrong as it doesn't work with the external custom bots.
This commit is contained in:
PIG208 2021-07-22 11:14:52 +08:00
parent c602121171
commit a87303beb1
2 changed files with 7 additions and 4 deletions

View file

@ -29,7 +29,7 @@ class BotServerTestCase(TestCase):
server.app.config["BOTS_LIB_MODULES"] = bots_lib_modules
if bot_handlers is None:
bot_handlers = server.load_bot_handlers(
available_bots, bots_config, third_party_bot_conf
available_bots, bots_lib_modules, bots_config, third_party_bot_conf
)
message_handlers = server.init_message_handlers(
available_bots, bots_lib_modules, bot_handlers