Skip to content

Ensure tests are ran with the correct staticfiles setting

Sarah Rubio requested to merge fix-static-files-settings-for-tests into preprod

Since https://framagit.org/anthologie-palatine/anthologyontology/-/commit/b5caf9bc822556b44ed8cace41a7532d47ee0d56?merge_request_iid=100 tests are failing locally because as mentioned in the documentation you should not use the ManifestStaticFilesStorage during tests:

During testing, ensure that the STATICFILES_STORAGE setting is set to something else like 'django.contrib.staticfiles.storage.StaticFilesStorage' (the default). — https://docs.djangoproject.com/en/4.0/ref/contrib/staticfiles/#django.contrib.staticfiles.storage.ManifestStaticFilesStorage

Merge request reports

Loading