Skip to content
Snippets Groups Projects
Commit 35ce1533 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

fix usage of autouse

parent d7369822
No related branches found
No related tags found
2 merge requests!123REL: Release v0.6.0,!115Use cached_get_entity_by
Pipeline #36300 failed
...@@ -30,8 +30,8 @@ from caosdb.utils.register_tests import clear_database, set_test_key ...@@ -30,8 +30,8 @@ from caosdb.utils.register_tests import clear_database, set_test_key
set_test_key("10b128cf8a1372f30aa3697466bb55e76974e0c16a599bb44ace88f19c8f61e2") set_test_key("10b128cf8a1372f30aa3697466bb55e76974e0c16a599bb44ace88f19c8f61e2")
@pytest.fixture @fixture(autouse=True)
def clear_cache(autouse=True): def clear_cache():
cache_clear() cache_clear()
......
...@@ -56,8 +56,8 @@ def rfp(*pathcomponents): ...@@ -56,8 +56,8 @@ def rfp(*pathcomponents):
DATADIR = rfp("test_data", "extroot", "realworld_example") DATADIR = rfp("test_data", "extroot", "realworld_example")
@pytest.fixture @pytest.fixture(autouse=True)
def clear_cache(autouse=True): def clear_cache():
cache_clear() cache_clear()
......
...@@ -39,8 +39,8 @@ DATADIR = os.path.join(os.path.dirname(__file__), "test_data", ...@@ -39,8 +39,8 @@ DATADIR = os.path.join(os.path.dirname(__file__), "test_data",
"extroot", "use_case_simple_presentation") "extroot", "use_case_simple_presentation")
@pytest.fixture @pytest.fixture(autouse=True)
def clear_cache(autouse=True): def clear_cache():
cache_clear() cache_clear()
......
...@@ -76,8 +76,8 @@ def dircheckstr(*pathcomponents): ...@@ -76,8 +76,8 @@ def dircheckstr(*pathcomponents):
"test_directories", "examples_article", *pathcomponents)) "test_directories", "examples_article", *pathcomponents))
@pytest.fixture @pytest.fixture(autouse=True)
def clear_cache(autouse=True): def clear_cache():
cache_clear() cache_clear()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment