fix pytests django settings init

This commit is contained in:
Daniel Bauer
2024-08-15 22:46:03 +02:00
parent ef0f0e973d
commit df71be33fb
3 changed files with 8 additions and 15 deletions

View File

@@ -1,12 +1,5 @@
from django.http import HttpResponse, HttpRequest
from django.conf import settings
from django.http import HttpResponse
from django_signposting.middleware import SignpostingMiddleware
import pytest
@pytest.fixture(scope="module", autouse=True)
def configure_django_settings():
settings.configure()
def test_middleware_no_signposting():