mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-04 11:06:46 +00:00
🐛 fix argument parser message (#1426)
This commit is contained in:
@ -296,6 +296,7 @@ async def test_shell_command(app: App):
|
||||
assert state[SHELL_ARGV] == []
|
||||
assert isinstance(state[SHELL_ARGS], ParserExit)
|
||||
assert state[SHELL_ARGS].status != 0
|
||||
assert state[SHELL_ARGS].message.startswith(parser.format_usage() + "test: error:")
|
||||
|
||||
test_message_parser = shell_command(CMD, parser=parser)
|
||||
dependent = list(test_message_parser.checkers)[0]
|
||||
|
Reference in New Issue
Block a user