Skip to content

Commit

Permalink
Use isolated profile for orm/test_codes.py/test_input_code
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Dec 20, 2024
1 parent 08315c4 commit 1582e77
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/tools/archive/orm/test_codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 1582e77

Please sign in to comment.