summaryrefslogtreecommitdiff
path: root/tests/staticfiles_tests
AgeCommit message (Collapse)Author
2025-08-08Fixed #36525 -- Silenced individual deleted file messages in collectstatic ↵James Bligh
--clear's default verbosity.
2025-08-05Fixed #26583 -- Silenced individual clashing name warnings in ↵James Bligh
collectstatic's default verbosity. Made collectstatic report individual destination conflicts only at verbosity 2+. Made verbosity level 1 report a summary count of skipped files.
2025-07-23Refs #36500 -- Rewrapped long docstrings and block comments via a script.django-bot
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
2025-07-01Fixed #35846 -- Ensured consistent path ordering in ↵Matthew Stell
ManifestStaticFilesStorage manifest files. This change reuses the existing sorting of `hashed_files` in `ManifestStaticFilesStorage.save_manifest` to also store a sorted `paths` mapping in the manifest file. This ensures stable manifest output that does not change unnecessarily.
2025-05-16Fixed #36348 -- Fixed handling multiple nested url()s in ↵Samuel Cormier-Iijima
ManifestStaticFilesStorage. Signed-off-by: Samuel Cormier-Iijima <samuel@cormier-iijima.com>
2025-02-18Refs #36005 -- Used datetime.UTC alias instead of datetime.timezone.utc.Mariusz Felisiak
datetime.UTC was added in Python 3.11.
2024-08-30Fixed #35669 -- Improved max post-process passes exceeded error message in ↵SaJH
HashedFilesMixin. Signed-off-by: SaJH <wogur981208@gmail.com>
2024-08-28Refs #22712 -- Adjusted deprecation warning stacklevel in staticfiles finders.Simon Charette
2024-08-23Fixed #35689 -- Handled custom labels in LabelCommand.missing_args_message.Giovanni Fabbretti
2024-08-07Fixed #35553 -- Handled import*as in HashedFilesMixin.Farhan
2024-07-11Fixed syntax of CSS file used in tests.Tom Carrick
2024-06-28Refs #22712 -- Corrected deprecation of "all" argument in ↵Mariusz Felisiak
django.contrib.staticfiles.finders.find(). Features deprecated in Django 5.2 should be removed in Django 6.1.
2024-06-27Fixed #22712 -- Avoided name shadowing of "all" in ↵Andreu Vallbona
django.contrib.staticfiles.finders. Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2024-02-28Fixed #29022 -- Fixed handling protocol-relative URLs in ↵Adam Zapletal
ManifestStaticFilesStorage when STATIC_URL is set to /.
2024-01-04Used enterClassContext() where appropriate.Mariusz Felisiak
2023-12-31Used addCleanup() in tests where appropriate.Mariusz Felisiak
2023-09-18Refs #26029 -- Removed DEFAULT_FILE_STORAGE and STATICFILES_STORAGE settings.Mariusz Felisiak
This also removes django.core.files.storage.get_storage_class(). Per deprecation timeline.
2023-08-31Refs #34712 -- Added system check for staticfiles storage in STORAGES setting.Bruno Alla
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Natalia Bidart <124304+nessita@users.noreply.github.com>
2023-04-21Fixed #34496 -- Fixed handling source maps with data URI in ↵Hielke Walinga
ManifestStaticFilesStorage. Regression in 781b44240a06f0c868254f40f36ce46c927f56d1.
2023-03-18Fixed #34322 -- Made ES module support to ManifestStaticFilesStorage optional.Mariusz Felisiak
Co-authored-by: Author: Claude Paroz <claude@2xlibre.net>
2023-03-12Fixed #34407 -- Reported filename when decoding fails in collectstatic's ↵Claude Paroz
post_process.
2023-02-01Refs #33476 -- Applied Black's 2023 stable style.David Smith
Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0
2023-01-12Refs #26029 -- Deprecated DEFAULT_FILE_STORAGE and STATICFILES_STORAGE settings.Jarosław Wygoda
2023-01-02Fixed #34235 -- Added ManifestFilesMixin.manifest_hash attribute.Florian Apolloner
This adds ManifestFilesMixin.manifest_hash attribute exposing a "hash" of the full manifest. This allows applications to determine when their static files have changed.
2022-12-07Fixed #32319 -- Added ES module support to ManifestStaticFilesStorage.James Bligh
Co-authored-by: James Bligh <james.bligh@silvercloudhealth.com>
2022-08-08Added test for non-HTTP request on ASGIStaticFilesHandler.Carlton Gibson
2022-07-31Fixed warnings per flake8 5.0.0.Mariusz Felisiak
2022-06-23Made HashedFilesMixin ignore URLs without a path.Florian Apolloner
2022-06-03Refs #33765 -- Added tests for trailing whitespace in JavaScript source map ↵Adam Johnson
references.
2022-03-24Refs #32365 -- Removed internal uses of utils.timezone.utc alias.Carlton Gibson
Remaining test case ensures that uses of the alias are mapped canonically by the migration writer.
2022-03-04Refs #33446 -- Allowed variable whitespace in CSS source map references.Adam Johnson
Follow up to dc8bb35e39388d41b1f38b6c5d0181224e075f16. The Webpack default is to output CSS source map comments like `/*# sourceMappingURL=main.css.map*/`. Also, Chromium allows tabs.
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2022-01-22Stopped including type="text/css" attributes for CSS link tags.Claude Paroz
2022-01-18Fixed #33446 -- Added CSS source map support to ManifestStaticFilesStorage.Adam Johnson
2021-11-05Fixed #33253 -- Reverted "Fixed #32319 -- Added ES module support to ↵Mariusz Felisiak
ManifestStaticFilesStorage." This reverts commit 91e21836f667c784a8a63ab1f18d81f553e679cb. `export` and `import` directives have several syntax variants and not all of them were properly covered. Thanks Hervé Le Roy for the report.
2021-11-04Fixed #33237 -- Fixed detecting source maps in ManifestStaticFilesStorage ↵Carlton Gibson
for multiline files. Switched regex to multiline mode in order to match per-line, rather than against the whole file. Thanks to Joseph Abrahams for the report. Regression in 781b44240a06f0c868254f40f36ce46c927f56d1.
2021-10-26Fixed #27079 -- Avoided multiple setUpClass()/tearDownClass() calls in ↵Jacob Walls
LiveServerTestCase tests.
2021-08-19Removed reference to nonexistent collectstatic --exclude-dirs option.Chris Jerdonek
2021-08-05Fixed #27590 -- Allowed customizing a manifest file storage in ↵Jarosław Wygoda
ManifestFilesMixin.
2021-06-07Fixed #32716 -- Fixed ManifestStaticFilesStorage crash when ↵aryabartar
max_post_process_passes is 0.
2021-06-07Fixed #32821 -- Updated os.scandir() uses to use a context manager.Chris Jerdonek
2021-05-31Fixed #32319 -- Added ES module support to ManifestStaticFilesStorage.Gildardo Adrian Maravilla Jacome
2021-05-31Refs #32319 -- Changed HashedFilesMixin to use named groups in patterns.Gildardo Adrian Maravilla Jacome
2021-05-06Removed unused TestHashedFiles._max_post_process_passes.Mariusz Felisiak
Unused since f1894bae3071da4ee577fc40ae61491f3e03d82c
2021-04-02Fixed #32383 -- Added source map support to ManifestStaticFilesStorage.Adam Johnson
2021-03-03Fixed #27854 -- Added system check for nonexistent directories in ↵Jacob Walls
STATICFILES_DIRS setting.
2021-03-03Used CollectionTestCase in FindersCheckTests tests.Mariusz Felisiak
2021-02-26Fixed #28607 -- Prevented duplicates in HashedFilesMixin post-processing ↵Jacob Walls
results. Thanks Ed Morley for the implementation idea.
2021-02-15Refs #32417 -- Improved cleaning up and fixed isolation of staticfiles_tests ↵Chris Jerdonek
tests.