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 58ae7f4 commit c60879b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/cli/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ def test_cli_where(main_runner):


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)
for index, runner in enumerate((subprocess.run, )):
result = runner(['instld'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, bufsize=100, universal_newlines=True)

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


def test_run_command_with_arguments(main_runner):
Expand Down

0 comments on commit c60879b

Please sign in to comment.