summaryrefslogtreecommitdiff
path: root/tests/runtests.py
AgeCommit message (Collapse)Author
2025-12-11Refs #27890 -- Avoided overwriting TMPDIR in runtests.py under forkserver mode.Jacob Walls
This variable should only be set once. Under forkserver, this module was getting executed multiple times, causing nested temporary dirs that didn't clean up properly, raising FileNotFoundError. This similar to #27890 although a slightly different cause.
2025-11-11Refs #35844 -- Checked for forkserver mode when running runtests.py with ↵Jacob Walls
--selenium and --parallel.
2025-09-17Advanced deprecation warnings for Django 6.1.Jacob Walls
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-06-18Fixed #32770 -- Added system check to ensure django.contrib.postgres is ↵Clifford Gama
installed when using its features. Added postgres.E005 to validate 'django.contrib.postgres' is in INSTALLED_APPS when using: * PostgreSQL-specific fields (ArrayField, HStoreField, range fields, SearchVectorField), * PostgreSQL indexes (PostgresIndex and all subclasses), and * ExclusionConstraint The check provides immediate feedback during system checks rather than failing later with obscure runtime and database errors. Thanks to Simon Charette and Sarah Boyce for reviews.
2025-01-20Fixed #36005 -- Dropped support for Python 3.10 and 3.11.Mariusz Felisiak
2025-01-15Advanced deprecation warnings for Django 6.0.Sarah Boyce
2024-12-04Fixed #35952 -- Used class property for available apps check on ↵Jake Howard
TransactionTestCase.
2024-09-30Fixed #35797 -- Removed debug context processor from default project template.Marc Gibbons
2024-05-22Advanced deprecation warnings for Django 5.2.Natalia
2023-11-27Refs #34986 -- Added django.utils.version.PYPY.Nick Pope
2023-11-21Fixed runtests.py crash on PyPy.Michał Górny
The gc.set_threshold() call was made conditional to non-PyPy implementations. The method is not available in PyPy3, and GC is much less aggressive there, so the adjustment probably is not necessary.
2023-10-18Refs #34043 -- Added --screenshots option to runtests.py and selenium tests.Sarah Boyce
2023-09-18Advanced deprecation warnings for Django 5.1.Mariusz Felisiak
2023-09-18Refs #33872 -- Removed ↵Mariusz Felisiak
django.contrib.postgres.fields.CIText/CICharField/CIEmailField/CITextField. Per deprecation timeline.
2023-09-07Fixed #34810 -- Measured test coverage on django-admin commands.Jacob Walls
2023-09-04Refs #34233 -- Bumped minimum supported version of docutils to 0.19.Jacob Walls
2023-08-31Refs #32355 -- Removed unnecessary getattr() call.Mariusz Felisiak
options.test_name_patterns is always defined. Follow up to ec0ff406311de88f4e2a135d784363424fe602aa.
2023-08-31Fixed #34210 -- Added unittest's durations option to the test runner.David Smith
2023-01-17Advanced deprecation warnings for Django 5.0.Mariusz Felisiak
2023-01-17Refs #32339 -- Changed default form and formset rendering style to div-based.Mariusz Felisiak
Per deprecation timeline. This also removes "django/forms/default.html" and "django/forms/formsets/default.html" templates.
2022-08-03Fixed #33872 -- Deprecated ↵Mariusz Felisiak
django.contrib.postgres.fields.CIText/CICharField/CIEmailField/CITextField.
2022-05-19Fixed #33719 -- Fixed test command crash when running in parallel.Mariusz Felisiak
Thanks Pēteris Caune for the report. Regression in 3b3f38b3b09b0f2373e51406ecb8c9c45d36aebc.
2022-05-17Advanced deprecation warnings for Django 4.2.Carlton Gibson
2022-05-17Refs #32339 -- Deprecated default.html form template.David Smith
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2022-03-15Fixed #31169 -- Adapted the parallel test runner to use spawn.David Smith
Co-authored-by: Valz <ahmadahussein0@gmail.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk>
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-02-03Refs #33476 -- Refactored problematic code before reformatting by Black.Mariusz Felisiak
In these cases Black produces unexpected results, e.g. def make_random_password( self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789', ): or cursor.execute(""" SELECT ... """, [table name], )
2022-01-21Fixed #33455 -- Improved error message when selenium is not installed.My-Name-Is-Nabil
2021-09-20Advanced deprecation warnings for Django 4.1.Mariusz Felisiak
2021-09-20Refs #32193 -- Removed MemcachedCache per deprecation timeline.Mariusz Felisiak
2021-08-19Refs #31621 -- Fixed handling --parallel option in test management command ↵Mariusz Felisiak
and runtests.py. Regression in ae89daf46f83a7b39d599d289624c3377bfa4ab1. Thanks Tim Graham for the report.
2021-08-03Fixed #31621 -- Added support for '--parallel auto' to test management command.Adam Johnson
2021-07-08Fixed #24522 -- Added a --shuffle option to DiscoverRunner.Chris Jerdonek
2021-06-10Fixed #32609 -- Updated runtests.py to support directory path test labels.Chris Jerdonek
For example, with this change, the following now works from the tests directory: $ ./runtests.py view_tests/tests/
2021-06-07Refs #32668 -- Renamed setup()/teardown() to ↵Chris Jerdonek
setup_run_tests()/teardown_run_tests() in runtests.py.
2021-06-07Refs #32668 -- Changed bisect_tests() and paired_tests() to use only ↵Chris Jerdonek
setup_collect_tests().
2021-06-07Refs #32668 -- Passed setup()'s return value to run_tests() instead of ↵Chris Jerdonek
get_installed().
2021-06-07Refs #32668 -- Refactored out setup_collect_tests() in runtests.py.Chris Jerdonek
2021-06-07Refs #32668 -- Added gis_enabled argument to get_test_modules().Chris Jerdonek
2021-06-07Fixed #32821 -- Updated os.scandir() uses to use a context manager.Chris Jerdonek
2021-06-05Refs #32668 -- Simplified start_at/start_after logic in runtests.py's setup().Chris Jerdonek
2021-06-03Refs #32668 -- Simplified get_test_modules() in runtests.py.Chris Jerdonek
This simplifies runtests.py's get_test_modules() in a few ways. For example, it changes the function to yield strings instead of returning pairs of strings, which simplifies the calling code. This commit also changes SUBDIRS_TO_SKIP from a list to a dict since the directories to skip depend on the parent directory.
2021-06-03Refs #32668 -- Refactored away module_found_in_labels in runtests.py's setup().Chris Jerdonek
2021-06-03Refs #32668 -- Made setup()'s test_labels argument optional in runtests.py.Chris Jerdonek
2021-04-19Refs #32609 -- Simplified test_labels_set construction in runtests.py's setup().Chris Jerdonek
Follow up to 7cf3a5786bc76374e743fbc0c1a1c8470a61f6c0.
2021-04-19Refs #32611 -- Removed initial "Testing against ..." log message calls from ↵Chris Jerdonek
--bisect/--pair runtests options.
2021-04-19Fixed #32611 -- Prevented unecessary setup()/teardown() calls when using ↵Chris Jerdonek
--bisect/--pair runtests options. This commit changes runtests.py's bisect_tests() and paired_tests() to change settings only when necessary, namely when specific test names aren't provided.
2021-04-13Reduced the garbage collection frequency in runtests.py.Adam Johnson