From 2b4eda3fbef84eb9b26f9d516123d3b7659e7f1c Mon Sep 17 00:00:00 2001 From: Jusong Yu Date: Fri, 29 Nov 2024 16:27:44 +0100 Subject: [PATCH] Clean storage for test_authinfo tests --- tests/tools/archive/orm/test_authinfo.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/tools/archive/orm/test_authinfo.py b/tests/tools/archive/orm/test_authinfo.py index e20c51270a..89136ee858 100644 --- a/tests/tools/archive/orm/test_authinfo.py +++ b/tests/tools/archive/orm/test_authinfo.py @@ -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' @@ -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' @@ -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' @@ -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'