summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
new file mode 100644
index 00000000..c4e58897
--- /dev/null
+++ b/tests/conftest.py
@@ -0,0 +1,8 @@
+import pytest
+
+import lib.utils.settings
+
+@pytest.fixture(scope="session", autouse=True)
+def disable_cache():
+ # We disable the cache because Nix executes our tests with a non-writable HOME directory.
+ lib.utils.settings.global_settings._settings['cache_size'] = 0