zulip_botserver/tests: Reformat input to make them more readable.
This commit is contained in:
parent
7bbc81edbd
commit
2de862cdcd
|
@ -11,14 +11,15 @@ class BotServerTestCase(TestCase):
|
||||||
server.app.testing = True
|
server.app.testing = True
|
||||||
self.app = server.app.test_client()
|
self.app = server.app.test_client()
|
||||||
|
|
||||||
def assert_bot_server_response(self,
|
def assert_bot_server_response(
|
||||||
available_bots: Optional[List[str]]=None,
|
self,
|
||||||
bots_config: Optional[Dict[str, Dict[str, str]]]=None,
|
available_bots: Optional[List[str]]=None,
|
||||||
bot_handlers: Optional[Dict[str, Any]]=None,
|
bots_config: Optional[Dict[str, Dict[str, str]]]=None,
|
||||||
payload_url: str="/bots/helloworld",
|
bot_handlers: Optional[Dict[str, Any]]=None,
|
||||||
message: Optional[Dict[str, Any]]=dict(message={'key': "test message"}),
|
payload_url: str="/bots/helloworld",
|
||||||
check_success: bool=False,
|
message: Optional[Dict[str, Any]]=dict(message={'key': "test message"}),
|
||||||
) -> None:
|
check_success: bool=False,
|
||||||
|
) -> None:
|
||||||
if available_bots is not None and bots_config is not None:
|
if available_bots is not None and bots_config is not None:
|
||||||
server.available_bots = available_bots
|
server.available_bots = available_bots
|
||||||
bots_lib_modules = server.load_lib_modules()
|
bots_lib_modules = server.load_lib_modules()
|
||||||
|
|
Loading…
Reference in a new issue