Skip to content

Commit

Permalink
fix output
Browse files Browse the repository at this point in the history
  • Loading branch information
pomponchik committed Sep 1, 2023
1 parent 73ff0af commit e33f6c4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/cli/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,13 @@ def test_run_command_without_arguments(main_runner):
for index, runner in enumerate((main_runner, subprocess.run)):
result = runner(['instld'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, bufsize=100)

stdout = result.stdout.decode('utf-8')
stderr = result.stderr.decode('utf-8')

assert result.returncode == 1
assert result.stdout.decode('utf-8') == ''
print(result.stderr.decode('utf-8') == f'usage: instld python_file.py [argv ...]{os.linesep}')
assert result.stderr.decode('utf-8') == f'usage: instld python_file.py [argv ...]{os.linesep}'
assert stdout == ''
print(stderr == f'usage: instld python_file.py [argv ...]{os.linesep}')
assert stderr == f'usage: instld python_file.py [argv ...]{os.linesep}'


def test_test():
Expand Down

0 comments on commit e33f6c4

Please sign in to comment.