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
|
||||
self.app = server.app.test_client()
|
||||
|
||||
def assert_bot_server_response(self,
|
||||
available_bots: Optional[List[str]]=None,
|
||||
bots_config: Optional[Dict[str, Dict[str, str]]]=None,
|
||||
bot_handlers: Optional[Dict[str, Any]]=None,
|
||||
payload_url: str="/bots/helloworld",
|
||||
message: Optional[Dict[str, Any]]=dict(message={'key': "test message"}),
|
||||
check_success: bool=False,
|
||||
) -> None:
|
||||
def assert_bot_server_response(
|
||||
self,
|
||||
available_bots: Optional[List[str]]=None,
|
||||
bots_config: Optional[Dict[str, Dict[str, str]]]=None,
|
||||
bot_handlers: Optional[Dict[str, Any]]=None,
|
||||
payload_url: str="/bots/helloworld",
|
||||
message: Optional[Dict[str, Any]]=dict(message={'key': "test message"}),
|
||||
check_success: bool=False,
|
||||
) -> None:
|
||||
if available_bots is not None and bots_config is not None:
|
||||
server.available_bots = available_bots
|
||||
bots_lib_modules = server.load_lib_modules()
|
||||
|
|
Loading…
Reference in a new issue