summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Godwin2022-12-15 10:09:35 -0700
committerAndrew Godwin2022-12-15 10:09:35 -0700
commit525deb441842191a0a083e4bff54053d04c30b3e (patch)
treec9a1ed49d6e52a75432d93da52bd91cc2cad06e6
parentaf3142ac3adb0d1f31d160edcb6d076b293020b1 (diff)
downloadtakahe-525deb441842191a0a083e4bff54053d04c30b3e.tar.gz
takahe-525deb441842191a0a083e4bff54053d04c30b3e.tar.bz2
takahe-525deb441842191a0a083e4bff54053d04c30b3e.zip
Fix tests with no static collection
-rw-r--r--setup.cfg1
-rw-r--r--tests/conftest.py5
2 files changed, 6 insertions, 0 deletions
diff --git a/setup.cfg b/setup.cfg
index 4f46c37..3503f61 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -11,6 +11,7 @@ multi_line_output = 3
addopts = --tb=short --ds=takahe.settings --import-mode=importlib
filterwarnings =
ignore:There is no current event loop
+ ignore:No directory at
[mypy]
warn_unused_ignores = True
diff --git a/tests/conftest.py b/tests/conftest.py
index 4466130..d65b5da 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -56,6 +56,11 @@ kwIDAQAB
}
+@pytest.fixture(autouse=True)
+def _test_settings(settings):
+ settings.STATICFILES_STORAGE = None
+
+
@pytest.fixture
def config_system(keypair):
Config.system = Config.SystemOptions(