summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-06-29 06:46:22 +0200
committerGitHub <noreply@github.com>2025-06-29 06:46:22 +0200
commitc7102e6cece6551f7d5a74f6e3350967fab1741d (patch)
treec48236266703a7b92f1475c51e63e50c8652880c /tests/conftest.py
parent0d461e3aef42b046b7ca14e2b0a05990306030d4 (diff)
parent40f1b2eccfc27764e49b20bf712d4f5fa321fcac (diff)
Merge pull request #3826 from not-my-profile/fix-nix
Fix package build with Nix package manager
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