From 0aca7621775f1f2b9bef3f36fff73849b8c653a6 Mon Sep 17 00:00:00 2001 From: Jusong Yu Date: Wed, 8 Jan 2025 23:37:06 +0100 Subject: [PATCH] revert fixture change see if failed tests come from them --- tests/cmdline/commands/test_rabbitmq.py | 3 ++- tests/tools/archive/orm/test_codes.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/cmdline/commands/test_rabbitmq.py b/tests/cmdline/commands/test_rabbitmq.py index 78d2d7ce73..07d3466fe8 100644 --- a/tests/cmdline/commands/test_rabbitmq.py +++ b/tests/cmdline/commands/test_rabbitmq.py @@ -69,7 +69,8 @@ def test_tasks_revive_without_daemon(run_cli_command): assert run_cli_command(cmd_rabbitmq.cmd_tasks_revive, raises=True) -@pytest.mark.usefixtures('aiida_profile_clean') +# @pytest.mark.usefixtures('aiida_profile_clean') +@pytest.mark.usefixtures('started_daemon_client') def test_revive(run_cli_command, monkeypatch, aiida_code_installed, submit_and_await): """Test ``tasks revive``.""" code = aiida_code_installed(default_calc_job_plugin='core.arithmetic.add', filepath_executable='/bin/bash') diff --git a/tests/tools/archive/orm/test_codes.py b/tests/tools/archive/orm/test_codes.py index 5edc7e2fc7..27ae5f7882 100644 --- a/tests/tools/archive/orm/test_codes.py +++ b/tests/tools/archive/orm/test_codes.py @@ -35,7 +35,7 @@ def test_that_solo_code_is_exported_correctly(aiida_profile, tmp_path, aiida_loc assert orm.load_node(code_uuid).label == code_label -def test_input_code(aiida_profile_clean, tmp_path, aiida_localhost): +def test_input_code(aiida_profile, tmp_path, aiida_localhost): """This test checks that when a calculation is exported then the corresponding code is also exported. It also checks that the links are also in place after the import. @@ -59,7 +59,7 @@ def test_input_code(aiida_profile_clean, tmp_path, aiida_localhost): export_file = tmp_path / 'export.aiida' create_archive([calc], filename=export_file) - aiida_profile_clean.reset_storage() + aiida_profile.reset_storage() import_archive(export_file)