Skip to content

Commit

Permalink
Fix test using new STORAGES setting (added in 4.2, removed in 5.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
fdemmer committed Jan 7, 2025
1 parent 8351994 commit 3728ffe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions django_weasyprint/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ def test_static(self, mock_fetcher, mock_find, mock_open):
STATIC_URL='/static/',
STATIC_ROOT='/www/static',
STATICFILES_STORAGE='django.contrib.staticfiles.storage.ManifestStaticFilesStorage', # noqa
STORAGES={
'staticfiles': {
'BACKEND': 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage', # noqa
},
}
)
@mock.patch(
'django_weasyprint.utils.staticfiles_storage.hashed_files',
Expand Down

0 comments on commit 3728ffe

Please sign in to comment.