From 1582e77dccfa167735fb70f02ebcf9a26ec338c9 Mon Sep 17 00:00:00 2001 From: Jusong Yu Date: Fri, 20 Dec 2024 13:07:36 +0100 Subject: [PATCH] Use isolated profile for orm/test_codes.py/test_input_code --- tests/tools/archive/orm/test_codes.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/tools/archive/orm/test_codes.py b/tests/tools/archive/orm/test_codes.py index 27ae5f7882..0813cda8a1 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, tmp_path, aiida_localhost): +def test_input_code(aiida_profile_clean, 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,8 +59,6 @@ def test_input_code(aiida_profile, tmp_path, aiida_localhost): export_file = tmp_path / 'export.aiida' create_archive([calc], filename=export_file) - aiida_profile.reset_storage() - import_archive(export_file) # Check that the code node is there