summaryrefslogtreecommitdiff
path: root/tests/staticfiles_tests
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #34496 -- Fixed handling source maps with data URI in ↵Hielke Walinga2023-04-213-0/+28
| | | | | | ManifestStaticFilesStorage. Regression in 781b44240a06f0c868254f40f36ce46c927f56d1.
* Fixed #34322 -- Made ES module support to ManifestStaticFilesStorage optional.Mariusz Felisiak2023-03-181-46/+62
| | | Co-authored-by: Author: Claude Paroz <claude@2xlibre.net>
* Fixed #34407 -- Reported filename when decoding fails in collectstatic's ↵Claude Paroz2023-03-122-0/+14
| | | | post_process.
* Refs #33476 -- Applied Black's 2023 stable style.David Smith2023-02-012-2/+0
| | | | | | | | 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
* Refs #26029 -- Deprecated DEFAULT_FILE_STORAGE and STATICFILES_STORAGE settings.Jarosław Wygoda2023-01-124-27/+109
|
* Fixed #34235 -- Added ManifestFilesMixin.manifest_hash attribute.Florian Apolloner2023-01-022-4/+33
| | | | | | This adds ManifestFilesMixin.manifest_hash attribute exposing a "hash" of the full manifest. This allows applications to determine when their static files have changed.
* Fixed #32319 -- Added ES module support to ManifestStaticFilesStorage.James Bligh2022-12-075-0/+76
| | | Co-authored-by: James Bligh <james.bligh@silvercloudhealth.com>
* Added test for non-HTTP request on ASGIStaticFilesHandler.Carlton Gibson2022-08-081-0/+19
|
* Fixed warnings per flake8 5.0.0.Mariusz Felisiak2022-07-311-6/+7
|
* Made HashedFilesMixin ignore URLs without a path.Florian Apolloner2022-06-232-1/+3
|
* Refs #33765 -- Added tests for trailing whitespace in JavaScript source map ↵Adam Johnson2022-06-032-0/+16
| | | | references.
* Refs #32365 -- Removed internal uses of utils.timezone.utc alias.Carlton Gibson2022-03-242-4/+2
| | | | | Remaining test case ensures that uses of the alias are mapped canonically by the migration writer.
* Refs #33446 -- Allowed variable whitespace in CSS source map references.Adam Johnson2022-03-043-2/+16
| | | | | | | Follow up to dc8bb35e39388d41b1f38b6c5d0181224e075f16. The Webpack default is to output CSS source map comments like `/*# sourceMappingURL=main.css.map*/`. Also, Chromium allows tabs.
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-073-5/+15
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-0715-386/+520
|
* Stopped including type="text/css" attributes for CSS link tags.Claude Paroz2022-01-221-2/+2
|
* Fixed #33446 -- Added CSS source map support to ManifestStaticFilesStorage.Adam Johnson2022-01-184-0/+29
|
* Fixed #33253 -- Reverted "Fixed #32319 -- Added ES module support to ↵Mariusz Felisiak2021-11-055-76/+0
| | | | | | | | | | 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.
* Fixed #33237 -- Fixed detecting source maps in ManifestStaticFilesStorage ↵Carlton Gibson2021-11-042-1/+2
| | | | | | | | | | | 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.
* Fixed #27079 -- Avoided multiple setUpClass()/tearDownClass() calls in ↵Jacob Walls2021-10-261-18/+2
| | | | LiveServerTestCase tests.
* Removed reference to nonexistent collectstatic --exclude-dirs option.Chris Jerdonek2021-08-191-3/+3
|
* Fixed #27590 -- Allowed customizing a manifest file storage in ↵Jarosław Wygoda2021-08-051-1/+51
| | | | ManifestFilesMixin.
* Fixed #32716 -- Fixed ManifestStaticFilesStorage crash when ↵aryabartar2021-06-072-0/+16
| | | | max_post_process_passes is 0.
* Fixed #32821 -- Updated os.scandir() uses to use a context manager.Chris Jerdonek2021-06-071-5/+6
|
* Fixed #32319 -- Added ES module support to ManifestStaticFilesStorage.Gildardo Adrian Maravilla Jacome2021-05-315-0/+76
|
* Refs #32319 -- Changed HashedFilesMixin to use named groups in patterns.Gildardo Adrian Maravilla Jacome2021-05-311-1/+4
|
* Removed unused TestHashedFiles._max_post_process_passes.Mariusz Felisiak2021-05-061-5/+0
| | | Unused since f1894bae3071da4ee577fc40ae61491f3e03d82c
* Fixed #32383 -- Added source map support to ManifestStaticFilesStorage.Adam Johnson2021-04-024-0/+27
|
* Fixed #27854 -- Added system check for nonexistent directories in ↵Jacob Walls2021-03-031-2/+23
| | | | STATICFILES_DIRS setting.
* Used CollectionTestCase in FindersCheckTests tests.Mariusz Felisiak2021-03-031-26/+32
|
* Fixed #28607 -- Prevented duplicates in HashedFilesMixin post-processing ↵Jacob Walls2021-02-261-0/+2
| | | | | | results. Thanks Ed Morley for the implementation idea.
* Refs #32417 -- Improved cleaning up and fixed isolation of staticfiles_tests ↵Chris Jerdonek2021-02-151-10/+19
| | | | tests.
* Refs #32394 -- Changed STATIC_URL/MEDIA_URL to relative paths in tests and ↵Markus Holtermann2021-02-063-5/+5
| | | | docs where appropriate.
* Fixed CVE-2020-24583, #31921 -- Fixed permissions on intermediate-level ↵Mariusz Felisiak2020-09-012-15/+38
| | | | | | static and storage directories on Python 3.7+. Thanks WhiteSage for the report.
* Fixed #31594 -- Added ASGIStaticFilesHandler.get_response_async().Joshua Massover2020-06-081-0/+22
|
* Fixed E128, E741 flake8 warnings.Mariusz Felisiak2020-05-121-3/+3
|
* Fixed #31528 -- Made collectstatic management command run staticfiles checks.Hasan Ramezani2020-05-081-0/+7
|
* Fixed #31517 -- Fixed HashedFilesMixin.hashed_name() if hash of the file is ↵Richard Campen2020-04-282-0/+14
| | | | None.
* Fixed #31080 -- Removed redundant type="text/javascript" attribute from ↵Jon Dufresne2019-12-111-4/+4
| | | | <script> tags.
* Refs #29983 -- Added support for using pathlib.Path in all settings.Jon Dufresne2019-11-074-1/+18
|
* Harmonized Windows checks in tests to a single style.Jon Dufresne2019-11-061-1/+1
|
* Fixed #30802 -- Prevented manifest creation when running collectstatic in ↵pablo2019-09-271-0/+5
| | | | dry run mode.
* Refs #28606 -- Removed CachedStaticFilesStorage per deprecation timeline.Mariusz Felisiak2019-09-101-83/+1
|
* Fixed #30599 -- Prevented ManifestFilesMixin.read_manifest() from silencing ↵zeyneloz2019-08-021-0/+6
| | | | errors other than FileNotFoundError.
* Added test for handling of non-existent manifest in ↵zeyneloz2019-08-021-0/+4
| | | | ManifestFilesMixin.read_manifest().
* Fixed #28604 -- Prevented ManifestStaticFilesStorage from leaving ↵Nathan Gaberel2019-06-031-0/+12
| | | | intermediate files.
* Fixed #30171 -- Fixed DatabaseError in servers tests.Jon Dufresne2019-02-141-0/+3
| | | | | | Made DatabaseWrapper thread sharing logic reentrant. Used a reference counting like scheme to allow nested uses. The error appeared after 8c775391b78b2a4a2b57c5e89ed4888f36aada4b.
* Fixed #30137 -- Replaced OSError aliases with the canonical OSError.Jon Dufresne2019-01-281-1/+1
| | | | Used more specific errors (e.g. FileExistsError) as appropriate.
* Refs #23919 -- Replaced codecs.open() with open().Jon Dufresne2019-01-272-4/+2
| | | | On Python 3, open() handles encodings.
* Refs #21221 -- Removed staticfiles and admin_static template tag libraries.Tim Graham2019-01-171-36/+0
| | | | Per deprecation timeline.