mirror of
https://github.com/umap-project/umap.git
synced 2025-05-06 06:21:49 +02:00
fix: custom storage for tests
Setting `manifest_strict = False` will hopefully get rid of issues we have with the CI: > ValueError: Missing staticfiles manifest entry for 'umap/favicons/icon-192.png' See https://docs.djangoproject.com/en/5.0/ref/contrib/staticfiles/#django.contrib.staticfiles.storage.ManifestStaticFilesStorage.manifest_strict
This commit is contained in:
parent
148c119c05
commit
5441c65777
2 changed files with 5 additions and 1 deletions
|
@ -56,3 +56,7 @@ class UmapManifestStaticFilesStorage(ManifestStaticFilesStorage):
|
|||
minified = cssmin(initial)
|
||||
path.write_text(minified)
|
||||
yield original_path, processed_path, True
|
||||
|
||||
|
||||
class UmapManifestStaticFilesStorageNotStrict(UmapManifestStaticFilesStorage):
|
||||
manifest_strict = False
|
||||
|
|
|
@ -24,7 +24,7 @@ def test_javascript_have_been_loaded(
|
|||
):
|
||||
settings.STORAGES["staticfiles"][
|
||||
"BACKEND"
|
||||
] = "umap.storage.UmapManifestStaticFilesStorage"
|
||||
] = "umap.storage.UmapManifestStaticFilesStorageNotStrict"
|
||||
datalayer.settings["displayOnLoad"] = False
|
||||
datalayer.save()
|
||||
map.settings["properties"]["defaultView"] = "latest"
|
||||
|
|
Loading…
Reference in a new issue