diff --git a/integrationtests/test_issues.py b/integrationtests/test_issues.py index 08e254daf4052670fcec18760626c460604efe15..5a141f944ec695f2186060c4046a3e32b0579874 100644 --- a/integrationtests/test_issues.py +++ b/integrationtests/test_issues.py @@ -30,6 +30,11 @@ from caosdb.utils.register_tests import clear_database, set_test_key set_test_key("10b128cf8a1372f30aa3697466bb55e76974e0c16a599bb44ace88f19c8f61e2") +@pytest.fixture +def clear_cache(autouse=True): + cache_clear() + + def test_issue_23(clear_database): """Test that an update leaves existing properties, that were not found by the crawler, unchanged. diff --git a/integrationtests/test_realworld_example.py b/integrationtests/test_realworld_example.py index 45873ddeb8b4f4a23fbcbc9225cbeea60b213cc4..e7b4ab379016d71dcd0171da5bbae948806226a0 100644 --- a/integrationtests/test_realworld_example.py +++ b/integrationtests/test_realworld_example.py @@ -56,6 +56,11 @@ def rfp(*pathcomponents): DATADIR = rfp("test_data", "extroot", "realworld_example") +@pytest.fixture +def clear_cache(autouse=True): + cache_clear() + + @pytest.fixture def addfiles(): loadpath(path='/opt/caosdb/mnt/extroot/', diff --git a/integrationtests/test_use_case_simple_presentation.py b/integrationtests/test_use_case_simple_presentation.py index 5f66e6fae7a77a315437f4a030110ded8d0ce867..8721b51551301085e44b5febdd1b67ead5364d7b 100644 --- a/integrationtests/test_use_case_simple_presentation.py +++ b/integrationtests/test_use_case_simple_presentation.py @@ -39,6 +39,11 @@ DATADIR = os.path.join(os.path.dirname(__file__), "test_data", "extroot", "use_case_simple_presentation") +@pytest.fixture +def clear_cache(autouse=True): + cache_clear() + + def test_complete_crawler(clear_database, caplog): # Setup the data model: model = parser.parse_model_from_yaml(os.path.join(DATADIR, "model.yml"))