From 42fcb94d9b88ecc0db9d5a4ee9f17937f334ef5b Mon Sep 17 00:00:00 2001 From: Nicolas Clerc Date: Fri, 21 Jul 2023 17:01:18 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85(backend)=20fix=20template=20missing?= =?UTF-8?q?=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When run locally, if the front has been built, this test fails. Overriding the static directory ensures the behavior when it is missing. --- src/backend/marsha/core/tests/views/test_site.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/marsha/core/tests/views/test_site.py b/src/backend/marsha/core/tests/views/test_site.py index 9890994882..c5a13c2edc 100644 --- a/src/backend/marsha/core/tests/views/test_site.py +++ b/src/backend/marsha/core/tests/views/test_site.py @@ -48,6 +48,7 @@ def test_site_publicly_accessible(self): ) @override_switch("site", active=True) + @override_settings(BASE_STATIC_DIR="missing") def test_site_site_template_missing(self): """Test site with missing index file should return a 501.""" response = self.client.get("/")