Skip to content

Commit

Permalink
Add aiida_profile_clean to test_devel.py
Browse files Browse the repository at this point in the history
Without it, the `localhost` computer would have already been created in
the tests for `launch-add`, so the first test for `launch-multiply-add`
would fail.
  • Loading branch information
GeigerJ2 committed Nov 5, 2024
1 parent b7c8286 commit 2ed19dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/cmdline/commands/test_devel.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def test_run_sql(run_cli_command):
assert str(Node.collection.count()) in result.output, result.output


@pytest.mark.usefixtures('aiida_profile_clean')
def test_launch_add(run_cli_command):
"""Test ``verdi devel launch-add``.
Expand Down Expand Up @@ -58,6 +59,7 @@ def test_launch_add_code(run_cli_command, aiida_code_installed):
assert node.is_finished_ok


@pytest.mark.usefixtures('aiida_profile_clean')
def test_launch_multiply_add(run_cli_command):
"""Test ``verdi devel launch-multiply-add``.
Expand Down

0 comments on commit 2ed19dc

Please sign in to comment.