From 1ac6519316a12d4c89727a7a56a0cab49fd07a87 Mon Sep 17 00:00:00 2001 From: Michael Manfre Date: Mon, 13 Feb 2023 22:57:07 -0500 Subject: [PATCH] Update _test_settings fixture to work with Django 4.1 and 4.2 (#507) --- tests/conftest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 3a03f4a..cca5c7c 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -59,7 +59,9 @@ kwIDAQAB @pytest.fixture(autouse=True) def _test_settings(settings): - settings.STATICFILES_STORAGE = None + settings.STATICFILES_STORAGE = ( + "django.contrib.staticfiles.storage.StaticFilesStorage" + ) @pytest.fixture