diff --git a/integrationtests/test_issues.py b/integrationtests/test_issues.py
index 5a141f944ec695f2186060c4046a3e32b0579874..32bf5320333955d101697a56e7e30ec1ba732dd5 100644
--- a/integrationtests/test_issues.py
+++ b/integrationtests/test_issues.py
@@ -30,8 +30,8 @@ from caosdb.utils.register_tests import clear_database, set_test_key
 set_test_key("10b128cf8a1372f30aa3697466bb55e76974e0c16a599bb44ace88f19c8f61e2")
 
 
-@pytest.fixture
-def clear_cache(autouse=True):
+@fixture(autouse=True)
+def clear_cache():
     cache_clear()
 
 
diff --git a/integrationtests/test_realworld_example.py b/integrationtests/test_realworld_example.py
index e7b4ab379016d71dcd0171da5bbae948806226a0..63abf068120f7545c562b963243dcef825a381ff 100644
--- a/integrationtests/test_realworld_example.py
+++ b/integrationtests/test_realworld_example.py
@@ -56,8 +56,8 @@ def rfp(*pathcomponents):
 DATADIR = rfp("test_data", "extroot", "realworld_example")
 
 
-@pytest.fixture
-def clear_cache(autouse=True):
+@pytest.fixture(autouse=True)
+def clear_cache():
     cache_clear()
 
 
diff --git a/integrationtests/test_use_case_simple_presentation.py b/integrationtests/test_use_case_simple_presentation.py
index 8721b51551301085e44b5febdd1b67ead5364d7b..e7ae2ea6542a2fbab4dbd05166291959f7e2c96f 100644
--- a/integrationtests/test_use_case_simple_presentation.py
+++ b/integrationtests/test_use_case_simple_presentation.py
@@ -39,8 +39,8 @@ DATADIR = os.path.join(os.path.dirname(__file__), "test_data",
                        "extroot", "use_case_simple_presentation")
 
 
-@pytest.fixture
-def clear_cache(autouse=True):
+@pytest.fixture(autouse=True)
+def clear_cache():
     cache_clear()
 
 
diff --git a/unittests/test_tool.py b/unittests/test_tool.py
index c8b11523211c66c1dfe6d7bf2d6938bdf9ff662a..d0393953ecca8e6aa0947c691a44c281e049fd8f 100755
--- a/unittests/test_tool.py
+++ b/unittests/test_tool.py
@@ -76,8 +76,8 @@ def dircheckstr(*pathcomponents):
             "test_directories", "examples_article", *pathcomponents))
 
 
-@pytest.fixture
-def clear_cache(autouse=True):
+@pytest.fixture(autouse=True)
+def clear_cache():
     cache_clear()