From 8557030bedc4584c518fb6e2f2b1672c99700595 Mon Sep 17 00:00:00 2001 From: James Meakin <12661555+jmsmkn@users.noreply.github.com> Date: Tue, 19 Nov 2024 14:54:25 +0100 Subject: [PATCH] Fix test --- app/tests/api_tests/test_schema.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/tests/api_tests/test_schema.py b/app/tests/api_tests/test_schema.py index 4e9521f76b..6907ae08ac 100644 --- a/app/tests/api_tests/test_schema.py +++ b/app/tests/api_tests/test_schema.py @@ -4,7 +4,9 @@ @pytest.mark.django_db -def test_schema_is_valid(): +def test_schema_is_valid(settings): + settings.ROOT_URLCONF = "config.urls.root" + schema_view = SpectacularAPIView() generator = schema_view.generator_class(