Skip to content

Commit

Permalink
Clean storage for test_authinfo tests
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Nov 29, 2024
1 parent 305cc54 commit 2b4eda3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/tools/archive/orm/test_authinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@


@pytest.mark.usefixtures('aiida_localhost')
@pytest.mark.usefixtures('aiida_profile_clean')
def test_create_all_no_authinfo(tmp_path):
"""Test archive creation that does not include authinfo."""
filename1 = tmp_path / 'export1.aiida'
Expand All @@ -24,6 +25,7 @@ def test_create_all_no_authinfo(tmp_path):


@pytest.mark.usefixtures('aiida_localhost')
@pytest.mark.usefixtures('aiida_profile_clean')
def test_create_all_with_authinfo(tmp_path):
"""Test archive creation that does include authinfo."""
filename1 = tmp_path / 'export1.aiida'
Expand All @@ -32,6 +34,7 @@ def test_create_all_with_authinfo(tmp_path):
assert archive.querybuilder().append(orm.AuthInfo).count() == 1


@pytest.mark.usefixtures('aiida_profile_clean')
def test_create_comp_with_authinfo(tmp_path, aiida_localhost):
"""Test archive creation that does include authinfo."""
filename1 = tmp_path / 'export1.aiida'
Expand All @@ -40,6 +43,7 @@ def test_create_comp_with_authinfo(tmp_path, aiida_localhost):
assert archive.querybuilder().append(orm.AuthInfo).count() == 1


@pytest.mark.usefixtures('aiida_profile_clean')
def test_import_authinfo(aiida_profile, tmp_path, aiida_localhost):
"""Test archive import, including authinfo"""
filename1 = tmp_path / 'export1.aiida'
Expand Down

0 comments on commit 2b4eda3

Please sign in to comment.