Skip to content

Commit

Permalink
✅(backend) fix template missing test
Browse files Browse the repository at this point in the history
When run locally, if the front has been built, this test fails.
Overriding the static directory ensures the behavior when it is missing.
  • Loading branch information
kernicPanel committed Aug 10, 2023
1 parent 64f2e92 commit 1565c87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/marsha/core/tests/views/test_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("/")
Expand Down

0 comments on commit 1565c87

Please sign in to comment.