Skip to content

Commit

Permalink
use aiida_profile_clean for test_input_code test
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Dec 20, 2024
1 parent 61934f3 commit d5733b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 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,7 +59,7 @@ 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()
aiida_profile_clean.reset_storage()

import_archive(export_file)

Expand Down
1 change: 1 addition & 0 deletions tests/tools/groups/test_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def test_walk(setup_groups):


@pytest.mark.filterwarnings('ignore::UserWarning')
@pytest.mark.usefixtures('aiida_profile_clean')
def test_walk_with_invalid_path():
"""Test the ``GroupPath.walk`` method with invalid paths."""
for label in ['a', 'a/b', 'a/c/d', 'a/c/e/g', 'a/f', 'bad//group', 'bad/other']:
Expand Down

0 comments on commit d5733b2

Please sign in to comment.