From 2ed19dcd824e1b9a5003dae93613a56ecca7c3a7 Mon Sep 17 00:00:00 2001 From: Julian Geiger Date: Tue, 5 Nov 2024 11:09:28 +0100 Subject: [PATCH] Add `aiida_profile_clean` to `test_devel.py` 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. --- tests/cmdline/commands/test_devel.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/cmdline/commands/test_devel.py b/tests/cmdline/commands/test_devel.py index 4cb7f73808..856073f524 100644 --- a/tests/cmdline/commands/test_devel.py +++ b/tests/cmdline/commands/test_devel.py @@ -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``. @@ -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``.