Skip to content

Commit

Permalink
Fixing last unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
zmalkmus committed May 8, 2024
1 parent 9dc5d49 commit 8d6ad9b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion agvis/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ def main():
# Run the command
if args.command is None:
parser.parse_args(sys.argv.append('--help'))

else:
cmd = args.command
for fullcmd, aliases in command_aliases.items():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test_agvis_run_invalid_command(monkeypatch, capsys):

def mock_subprocess_run(c2, **kwargs):
assert c2 == c1
return subprocess.CompletedProcess(args=c2, returncode=0, stdout=b'', stderr=b'Invalid command')
return subprocess.CompletedProcess(args=c2, stdout=b'', stderr=b'Invalid command')

monkeypatch.setattr(subprocess, 'run', mock_subprocess_run)

Expand Down

0 comments on commit 8d6ad9b

Please sign in to comment.