Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/staticfiles_tests
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25346 -- Allowed collectstatic to delete broken ↵Yusuke Miyazaki2015-10-171-2/+12
| | | | symlinks.
* Prevented staticfiles test from colliding when run in ↵Aymeric Augustin2015-09-093-45/+56
| | | | | | | | parallel. This requires that each test never alters files in static directories collected by other tests. The alternative is to add a temporary directory to STATICFILES_DIRS or a new app to INSTALLED_APPS.
* Fixed some unclosed objects in testsAndriy Sokolovskiy2015-07-061-2/+3
|
* Fixed #24982 -- Split staticfiles tests into multiple filesMoritz Sichert2015-07-018-1044/+1099
|
* Fixed #24890 -- Added warning to collectstatic when ↵Markus Amalthea Magnuson2015-06-141-0/+59
| | | | static files have clashing names
* Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette2015-05-201-6/+6
|
* Fixed staticfiles test on Windows; refs #23986.Tim Graham2015-03-111-1/+1
|
* Fixed #23986 -- Fixed collectstatic --clear failure if ↵Sztrovacsek2015-03-071-0/+4
| | | | STATIC_ROOT dir doesn't exist.
* Fixed a test failure under Windows and Python 2.Aymeric Augustin2015-02-231-1/+2
|
* Guaranteed removal of temporary files during tests.Aymeric Augustin2015-02-231-1/+1
| | | | | | | Dropped the DJANGO_TEST_TEMP_DIR environment variable. Before this change, proper removal depended on the developer passing dir=os.environ['DJANGO_TEST_TMP_DIR'] to tempfile functions.
* Removed rmtree_errorhandler.Aymeric Augustin2015-02-221-4/+2
| | | | | | | | | | The stated reason for its introduction in d18d37ce no longer applies since Django's code repository was switched from Subversion to git. Furthermore it never had any effect because shutil.rmtree ignores its onerror argument when ignore_errors is True. The reason for its use in template management commands is unclear.
* Removed obsolete reference to media directory.Aymeric Augustin2015-02-212-2/+2
|
* Removed workaround for SVN limitations.Aymeric Augustin2015-02-216-23/+8
| | | | In addition to simplifying the code, this reduces the number of writes.
* Avoided collecting admin static files in tests.Aymeric Augustin2015-02-211-5/+0
| | | | This makes the staticfiles tests 2.5 times faster.
* Removed TestServeAdminMedia.Aymeric Augustin2015-02-211-12/+0
| | | | It should have been removed when the ADMIN_MEDIA_PREFIX setting was deprecated.
* Refs #24324 -- Fixed Python 2 test failures when path to ↵Tim Graham2015-02-181-1/+1
| | | | Django source contains non-ASCII characters.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-063-13/+11
|
* Fixed #24197 -- Added clearing of staticfiles caches on ↵mlavin2015-02-041-12/+7
| | | | | | | settings changes during tests Cleared caching in staticfiles_storage and get_finder when relevant settings are changed.
* Fixed #24149 -- Normalized tuple settings to lists.darkryder2015-02-031-9/+9
|
* Fixed #23700 -- Fixed non-deterministic static files ↵Tim Graham2015-01-012-2/+8
| | | | | | | test failures on Windows. This partially reverts commit 949ee521fab106b44218c30577eb55f0097d39cd refs #21230.
* Refs #23947 -- Prevented staticfiles tests from having ↵Diego Guimarães2014-12-091-0/+4
| | | | side effects.
* Avoided using private API get_template_from_string.Aymeric Augustin2014-10-311-2/+2
|
* Avoid the word "stupid".Aymeric Augustin2014-09-091-1/+1
| | | | There's always a better word.
* Fixed #23374 -- Renamed StaticLiveServerCase to ↵Claude Paroz2014-08-281-5/+5
| | | | | | | StaticLiveServerTestCase Refs #20739. Thanks Raphaël Hertzog for the report and the initial patch.
* Updated tests for added newlines in ↵Tim Graham2014-08-131-16/+16
| | | | 68686430638215b5405b20bd767c0be392c9221d.
* Added newlines to the ends of CSS, HTML, and JavaScript ↵Trey Hunner2014-08-136-6/+6
| | | | files missing them.
* Removed some apps from ALWAYS_INSTALLED_APPSClaude Paroz2014-06-212-6/+12
|
* Converted remaining management commands to argparseClaude Paroz2014-06-141-3/+3
|
* Fixed a staticfiles test on Windows.Tim Graham2014-06-121-5/+6
|
* Fixed #22557 -- ManifestStaticFilesStorage did not ↵Denis Cornehl2014-05-201-3/+41
| | | | | | | | | | cleanup deleted files. When using ManifestStaticFilesStorage, deleted static files would be correctly cleaned up by "collectstatic --clear", but the manifest file would still contain the stale entries. Thanks to tedtieken for the report
* Refs #21230 -- removed direct settings manipulation from ↵Huu Nguyen2014-05-182-12/+3
| | | | staticfile tests
* Fixed monkeypatching in a staticfiles test.Florian Apolloner2014-04-211-2/+4
|
* Appeased flake8 2.1.0.Aymeric Augustin2014-04-211-3/+4
|
* Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi2014-04-061-2/+2
|
* Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham2014-04-031-4/+5
| | | | Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
* Fixed #22315 -- str/bytes mismatch in staticfilesDavid Evans2014-03-251-0/+5
| | | | | Previously, `ManifestFilesMixin.read_manifest` failed in Python 3 because `json.loads` accepts `str` not `bytes`.
* Reworked the detection of local storages for the ↵Loic Bistuer2014-02-121-0/+26
| | | | | | | | | | | | collectstatic command. Before 4befb30 the detection was broken because we used isinstance against a LazyObject rather than against a Storage class. That commit fixed it by looking directly at the object wrapped by LazyObject. This could however be a problem to anyone who subclasses the collectstatic management Command and directly supplies a Storage class. Refs #21581.
* Minor edits to new findstatic functionality; refs #19879.Tim Graham2014-02-091-4/+4
| | | | Hopefully fixes a test failure on Jenkins.
* Fixed #20780 -- Get rid of stale symlinks when using ↵Jannis Leidel2014-02-091-0/+9
| | | | | | collectstatic. Thanks to John Giannelos for the initial patch.
* Fixed #19879 -- Have 'findstatic' says on which ↵Vajrasky Kok2014-02-091-0/+37
| | | | | | | | | directories it searched the relative paths. Added searched_locations in finders module. Added verbosity flag level 2 on 'findstatic' command that will output the directories on which it searched the relative paths. Reported by ccurvey. Initial patch by Jonas Svensson and Vajrasky Kok.
* Fixed #21482 -- Uplifted restriction of collectstatic ↵Jannis Leidel2014-02-091-16/+17
| | | | | | using symlink option in Windows NT 6. Original patch by Vajrasky Kok. Reviewed by Florian Apolloner, Aymeric Augustin.
* Fixed #21674 -- Deprecated the import_by_path() function ↵Berker Peksag2014-02-081-2/+2
| | | | | | in favor of import_string(). Thanks Aymeric Augustin for the suggestion and review.
* Fixed #21867 -- Removed AppStaticStorage; app paths are ↵Carl Meyer2014-01-241-31/+0
| | | | | | | | | | | | | | | now AppConfig's job. AppStaticStorage only provided one thing over FileSystemStorage, which was taking an app name (import path) and translating it into a filesystem path. This is now something that should be done via app_config.path instead, leaving AppStaticStorage with no reason for existence. It should be safe to remove, as it was undocumented internal API. There was some kind of feature in the AppDirectoriesFinder code related to a "prefix" attribute on the storage class used by AppDirectoriesFinder. Since this feature was undocumented, untested, and of unclear purpose, I removed it as well.
* Added ManifestStaticFilesStorage to staticfiles contrib app.Jannis Leidel2014-01-201-55/+82
| | | | | It uses a static manifest file that is created when running collectstatic in the JSON format.
* Fixed #21581 -- Fixed a number of issues with collectstatic.Loic Bistuer2013-12-311-0/+11
| | | | | | | | | | | | | | | When STATIC_ROOT wasn't set, collectstatic --clear would delete every files within the current directory and its descendants. This patch makes the following changes: Prevent collectstatic from running if STATIC_ROOT isn't set. Fixed an issue that prevented collectstatic from displaying the destination directory. Changed the warning header to notify when the command is run in dry-run mode.
* Imported override_settings from its new location.Aymeric Augustin2013-12-232-3/+2
|
* Expurged INSTALLED_APPS from code and tests.Aymeric Augustin2013-12-221-3/+3
| | | | Except the app cache code and a few specific tests, of course.
* Stopped iterating on INSTALLED_APPS.Aymeric Augustin2013-12-221-0/+3
| | | | Used the app cache's get_app_configs() method instead.
* Removed superfluous models.py files.Aymeric Augustin2013-12-173-0/+0
| | | | | | | Added comments in the three empty models.py files that are still needed. Adjusted the test runner to add applications corresponding to test labels to INSTALLED_APPS even when they don't have a models module.
* Fixed E127 pep8 warnings.Loic Bistuer2013-12-141-3/+2
|