Skip to content

Commit

Permalink
Returning to cli_version for only matching commands
Browse files Browse the repository at this point in the history
  • Loading branch information
kkalinowski-reef committed Dec 18, 2023
1 parent d883298 commit dd1c6a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/test_autocomplete.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ def test_autocomplete_b2_commands(autocomplete_installed, is_running_on_docker,

@skip_on_windows
def test_autocomplete_b2_only_matching_commands(
autocomplete_installed, is_running_on_docker, shell, cli_command
autocomplete_installed, is_running_on_docker, shell, cli_version
):
if is_running_on_docker:
pytest.skip('Not supported on Docker')
shell.send(f'{cli_command} delete-\t\t')
shell.send(f'{cli_version} delete-\t\t')

shell.expect_exact("file", timeout=TIMEOUT) # common part of remaining cmds is autocompleted
with pytest.raises(pexpect.exceptions.TIMEOUT): # no other commands are suggested
Expand Down

0 comments on commit dd1c6a1

Please sign in to comment.