Skip to content

Commit

Permalink
an assert mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pomponchik committed Sep 4, 2023
1 parent e0b6a7f commit 531859e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/cli/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,11 @@ def test_run_command_without_arguments(main_runner):

assert result.returncode == 1
assert result.stdout.decode('utf-8') == ''
if not index:
print(result.before_stderr)
print(result.stderr)
print(repr(result.stderr.decode('utf-8')))
print(repr(f'usage: instld python_file.py [argv ...]{os.linesep}'))
print(result.stderr.decode('utf-8') == f'usage: instld python_file.py [argv ...]{os.linesep}')
print(result.before_stderr)
print(result.stderr)
print(repr(result.stderr.decode('utf-8')))
print(repr(f'usage: instld python_file.py [argv ...]{os.linesep}'))
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}'


Expand Down

0 comments on commit 531859e

Please sign in to comment.