Fix broken test
This commit is contained in:
@ -19,8 +19,8 @@ async def test_help_command(ssh_command_runner: CommandRunner, client_registry:
|
|||||||
|
|
||||||
re_cmd = re.compile(r"^\s{2}([^\s]+)\s.*", re.MULTILINE)
|
re_cmd = re.compile(r"^\s{2}([^\s]+)\s.*", re.MULTILINE)
|
||||||
commands = re_cmd.findall(result.stdout)
|
commands = re_cmd.findall(result.stdout)
|
||||||
expected = ['get_secret', 'ls', 'ping']
|
expected = ["get_secret", "ls", "ping", "list", "store", "lookup", "delete"]
|
||||||
assert commands == expected
|
assert sorted(commands) == sorted(expected)
|
||||||
|
|
||||||
print(result.stdout)
|
print(result.stdout)
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ async def test_help_registration_command(ssh_command_runner: CommandRunner, clie
|
|||||||
|
|
||||||
re_cmd = re.compile(r"^\s{2}([^\s]+)\s.*", re.MULTILINE)
|
re_cmd = re.compile(r"^\s{2}([^\s]+)\s.*", re.MULTILINE)
|
||||||
commands = re_cmd.findall(result.stdout)
|
commands = re_cmd.findall(result.stdout)
|
||||||
expected = ["get_secret", "ls", "register", "ping"]
|
expected = ["get_secret", "ls", "register", "ping", "list", "store", "lookup", "delete"]
|
||||||
assert sorted(commands) == sorted(expected)
|
assert sorted(commands) == sorted(expected)
|
||||||
|
|
||||||
print(result.stdout)
|
print(result.stdout)
|
||||||
|
|||||||
Reference in New Issue
Block a user