summaryrefslogtreecommitdiff
path: root/tests/staticfiles_tests
AgeCommit message (Collapse)Author
2015-10-17[1.9.x] Fixed #25346 -- Allowed collectstatic to delete broken symlinks.Yusuke Miyazaki
Backport of 0922bbf18d3ae8f37e1823df2dbc270d33334548 from master
2015-09-09Prevented staticfiles test from colliding when run in parallel.Aymeric Augustin
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.
2015-07-06Fixed some unclosed objects in testsAndriy Sokolovskiy
2015-07-01Fixed #24982 -- Split staticfiles tests into multiple filesMoritz Sichert
2015-06-13Fixed #24890 -- Added warning to collectstatic when static files have ↵Markus Amalthea Magnuson
clashing names
2015-05-20Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette
2015-03-11Fixed staticfiles test on Windows; refs #23986.Tim Graham
2015-03-07Fixed #23986 -- Fixed collectstatic --clear failure if STATIC_ROOT dir ↵Sztrovacsek
doesn't exist.
2015-02-23Fixed a test failure under Windows and Python 2.Aymeric Augustin
2015-02-23Guaranteed removal of temporary files during tests.Aymeric Augustin
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.
2015-02-22Removed rmtree_errorhandler.Aymeric Augustin
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.
2015-02-21Removed obsolete reference to media directory.Aymeric Augustin
2015-02-21Removed workaround for SVN limitations.Aymeric Augustin
In addition to simplifying the code, this reduces the number of writes.
2015-02-21Avoided collecting admin static files in tests.Aymeric Augustin
This makes the staticfiles tests 2.5 times faster.
2015-02-21Removed TestServeAdminMedia.Aymeric Augustin
It should have been removed when the ADMIN_MEDIA_PREFIX setting was deprecated.
2015-02-17Refs #24324 -- Fixed Python 2 test failures when path to Django source ↵Tim Graham
contains non-ASCII characters.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-04Fixed #24197 -- Added clearing of staticfiles caches on settings changes ↵mlavin
during tests Cleared caching in staticfiles_storage and get_finder when relevant settings are changed.
2015-02-03Fixed #24149 -- Normalized tuple settings to lists.darkryder
2015-01-01Fixed #23700 -- Fixed non-deterministic static files test failures on Windows.Tim Graham
This partially reverts commit 949ee521fab106b44218c30577eb55f0097d39cd refs #21230.
2014-12-09Refs #23947 -- Prevented staticfiles tests from having side effects.Diego Guimarães
2014-10-31Avoided using private API get_template_from_string.Aymeric Augustin
2014-09-09Avoid the word "stupid".Aymeric Augustin
There's always a better word.
2014-08-28Fixed #23374 -- Renamed StaticLiveServerCase to StaticLiveServerTestCaseClaude Paroz
Refs #20739. Thanks Raphaël Hertzog for the report and the initial patch.
2014-08-12Updated tests for added newlines in 68686430638215b5405b20bd767c0be392c9221d.Tim Graham
2014-08-12Added newlines to the ends of CSS, HTML, and JavaScript files missing them.Trey Hunner
2014-06-21Removed some apps from ALWAYS_INSTALLED_APPSClaude Paroz
2014-06-14Converted remaining management commands to argparseClaude Paroz
2014-06-12Fixed a staticfiles test on Windows.Tim Graham
2014-05-20Fixed #22557 -- ManifestStaticFilesStorage did not cleanup deleted files.Denis Cornehl
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
2014-05-18Refs #21230 -- removed direct settings manipulation from staticfile testsHuu Nguyen
2014-04-21Fixed monkeypatching in a staticfiles test.Florian Apolloner
2014-04-21Appeased flake8 2.1.0.Aymeric Augustin
2014-04-06Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi
2014-04-03Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham
Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
2014-03-25Fixed #22315 -- str/bytes mismatch in staticfilesDavid Evans
Previously, `ManifestFilesMixin.read_manifest` failed in Python 3 because `json.loads` accepts `str` not `bytes`.
2014-02-12Reworked the detection of local storages for the collectstatic command.Loic Bistuer
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.
2014-02-09Minor edits to new findstatic functionality; refs #19879.Tim Graham
Hopefully fixes a test failure on Jenkins.
2014-02-09Fixed #20780 -- Get rid of stale symlinks when using collectstatic.Jannis Leidel
Thanks to John Giannelos for the initial patch.
2014-02-09Fixed #19879 -- Have 'findstatic' says on which directories it searched the ↵Vajrasky Kok
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.
2014-02-09Fixed #21482 -- Uplifted restriction of collectstatic using symlink option ↵Jannis Leidel
in Windows NT 6. Original patch by Vajrasky Kok. Reviewed by Florian Apolloner, Aymeric Augustin.
2014-02-08Fixed #21674 -- Deprecated the import_by_path() function in favor of ↵Berker Peksag
import_string(). Thanks Aymeric Augustin for the suggestion and review.
2014-01-24Fixed #21867 -- Removed AppStaticStorage; app paths are now AppConfig's job.Carl Meyer
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.
2014-01-20Added ManifestStaticFilesStorage to staticfiles contrib app.Jannis Leidel
It uses a static manifest file that is created when running collectstatic in the JSON format.
2013-12-31Fixed #21581 -- Fixed a number of issues with collectstatic.Loic Bistuer
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.
2013-12-23Imported override_settings from its new location.Aymeric Augustin
2013-12-22Expurged INSTALLED_APPS from code and tests.Aymeric Augustin
Except the app cache code and a few specific tests, of course.
2013-12-22Stopped iterating on INSTALLED_APPS.Aymeric Augustin
Used the app cache's get_app_configs() method instead.
2013-12-17Removed superfluous models.py files.Aymeric Augustin
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.
2013-12-14Fixed E127 pep8 warnings.Loic Bistuer