Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/utils_tests/test_autoreload.py
Commit message (Collapse)AuthorAgeFilesLines
* Made the autoreloader survive all exceptions.Aymeric Augustin2015-08-291-0/+16
| | | | Refs #24704.
* Ensured gen_filenames() yields native strings.Aymeric Augustin2015-08-291-0/+4
| | | | | This also fixes a test failure on Python 2 when Django is installed in a non-ASCII path. This problem cannot happen on Python 3.
* Refactored autoreload tests.Aymeric Augustin2015-08-291-43/+70
| | | | | | * Added helpers to test uncached and cached access. * Fixed test_project_root_locale: it duplicated test_locale_paths_setting. * Rewrote test_only_new_files: test more cases.
* Accounted for error files in the autoreloader.Aymeric Augustin2015-08-291-0/+40
| | | | | | | * When some old files contain errors, the second call to gen_filenames() should return them. * When some new files contain errors, the first call to gen_filenames(only_new=True) should return them.
* Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette2015-05-201-2/+2
|
* Normalized usage of the tempfile module.Aymeric Augustin2015-02-231-9/+10
| | | | Specifically stopped using the dir argument.
* Refs #24324 -- Fixed Python 2 test failures when path to ↵Tim Graham2015-02-181-8/+9
| | | | Django source contains non-ASCII characters.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-2/+2
|
* Fixed #24149 -- Normalized tuple settings to lists.darkryder2015-02-031-1/+1
|
* Fixed test failure on Windows.Tim Graham2014-07-301-1/+2
| | | | | os.close(fd) is needed to avoid "The process cannot access the file because it is being used by another process"
* Fixed bad usage of rstrip() that caused test failure.Tim Graham2014-07-251-1/+1
| | | | | If the temporary file name contained a p or y as its last characters, it would be stripped. refs #23083.
* Fixed #23083 -- Fixed runserver reloading when deleting ↵Tim Graham2014-07-251-0/+13
| | | | | | a file. Thanks Collin Anderson for the report and hirokiky for the fix.
* Fixed #22991 -- Prevented *.pyc files in autoreload ↵Claude Paroz2014-07-151-0/+1
| | | | | | | | monitoring This fixes a regression introduced in 6d302f639. Thanks lorinkoz at gmail.com for the report, Collin Anderson for the initial patch and Simon Charette for the review.
* Fixed flake8 errors.Tim Graham2014-07-081-2/+2
|
* Fixed pyinotify performance regression in 15f82c7011Claude Paroz2014-07-061-0/+17
| | | | Refs #9722. Thanks Tim Graham for the review.
* Dropped AppCache._empty, _with_app and _without_app.Aymeric Augustin2013-12-231-7/+4
| | | | | It's now easier to achieve the same effect with modify_settings or override_settings.
* Moved apps back in the toplevel django namespace.Aymeric Augustin2013-12-221-1/+1
| | | | Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
* Expurged INSTALLED_APPS from code and tests.Aymeric Augustin2013-12-221-5/+8
| | | | Except the app cache code and a few specific tests, of course.
* Fixed #9523 -- Restart runserver after compiling apps ↵Bouke Haarsma2013-11-111-14/+43
| | | | | | | translations Django also uses locales provided by apps, which also might change. Also when i18n is disabled, there is no need for watching translation files.
* Fixed #9523 -- Restart runserver after translation MO ↵Bouke Haarsma2013-11-021-0/+37
files change Thanks to Krzysztof Kulewski for the initial patch.