Skip to content

Commit

Permalink
fix output
Browse files Browse the repository at this point in the history
  • Loading branch information
pomponchik committed Sep 4, 2023
1 parent dabe3d7 commit 8bd6711
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/cli/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ def test_cli_where(main_runner):

def test_run_command_without_arguments(main_runner):
for runner in (main_runner, subprocess.run):
result = runner(['instld'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, bufsize=100, universal_newlines=True)
result = runner(['instld'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, bufsize=100)

assert result.returncode == 1
assert result.stdout == ''
assert result.stderr == f'usage: instld python_file.py [argv ...]\n'
assert result.stdout.decode('utf-8') == ''
assert result.stderr.decode('utf-8') == f'usage: instld python_file.py [argv ...]\n'


def test_run_command_with_arguments(main_runner):
Expand Down

0 comments on commit 8bd6711

Please sign in to comment.