Skip to content

Commit

Permalink
Update tests/test_launch.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sphuber authored Aug 28, 2024
1 parent 1d7c39e commit 9953c9b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/test_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,8 @@ def test_error_command_failed():


def test_multi_command_raise():
"""Test that the shellfunction process fails if the command consists of more than one argument.
Running ``git diff`` raises an error message.
"""
with pytest.raises(ValueError, match=r'.* Command should only consist of one argument containing .*'):
"""Test :func:`aiida_shell.launch_shell_job` raises if ``command`` contains spaces."""
with pytest.raises(ValueError, match=r'.*The command `.*` appears to consist of multiple arguments.*'):
launch_shell_job('git diff')


Expand Down

0 comments on commit 9953c9b

Please sign in to comment.