From 525deb441842191a0a083e4bff54053d04c30b3e Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Thu, 15 Dec 2022 10:09:35 -0700 Subject: [PATCH] Fix tests with no static collection --- setup.cfg | 1 + tests/conftest.py | 5 +++++ 2 files changed, 6 insertions(+) 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(