| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2021-08-19 | Refs #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-19 | Refs #31621 -- Added more tests for test --parallel option. | Mariusz Felisiak | |
| 2021-07-16 | Fixed #32655 -- Deprecated extra_tests argument for ↵ | Jacob Walls | |
| DiscoverRunner.build_suite()/run_tests(). | |||
| 2021-07-12 | Fixed #32914 -- Prevented test --shuffle from skipping test methods. | Chris Jerdonek | |
| "test --shuffle" skipped test methods when test classes were mixed. This changes runner.py's reorder_tests() to group by TestCase class. Regression in 90ba716bf060ee7fef79dc230b0b20644839069f. | |||
| 2021-07-08 | Fixed #24522 -- Added a --shuffle option to DiscoverRunner. | Chris Jerdonek | |
| 2021-06-29 | Refs #32655 -- Improved error if iter_test_cases() is passed a string. | Chris Jerdonek | |
| 2021-03-11 | Fixed #32529 -- Delayed creating a test suite in build_suite(). | Chris Jerdonek | |
| 2021-03-11 | Refs #32489 -- Doc'd and tested iter_test_cases() support for an iterable of ↵ | Chris Jerdonek | |
| tests. | |||
| 2021-03-09 | Fixed #32516 -- Fixed reorder_suite() with duplicates and reverse=True. | Chris Jerdonek | |
| 2021-03-05 | Fixed #32489 -- Added iter_test_cases() to iterate over a TestSuite. | Chris Jerdonek | |
| This also makes partition_suite_by_type(), partition_suite_by_case(), filter_tests_by_tags(), and DiscoverRunner._get_databases() to use iter_test_cases(). | |||
| 2021-02-24 | Fixed #32446 -- Deprecated SERIALIZE test database setting. | Simon Charette | |
| Whether or not the state of a test database should be serialized can be inferred from the set of databases allowed to be access from discovered TestCase/TransactionTestCase enabling the serialized_rollback feature which makes this setting unnecessary. This should make a significant test suite bootstraping time difference on large projects that didn't explicitly disable test database serialization. | |||
| 2021-02-16 | Fixed #29052 -- Made test database creation preserve alias order and prefer ↵ | Harm Geerts | |
| the "default" database. This fixes flushing test databases when two aliases point to the same database. Use a list() to store the test database aliases so the order remains stable by following the order of the connections. Also, always use the "default" database alias as the first alias to accommodate `migrate`. Previously `migrate` could be executed on a secondary alias which caused truncating the "default" database. | |||
| 2020-12-10 | Fixed isolation of test_runner.EmptyDefaultDatabaseTest. | Mariusz Felisiak | |
| This fixes test_runner.test_debug_sql.TestDebugSQL. test_setupclass_exception when run in reverse. | |||
| 2020-08-13 | Refs #31811 -- Added optional timing outputs to the test runner. | Ahmad A. Hussein | |
| 2019-08-07 | Corrected several typos in string literals and test names. | Min ho Kim | |
| 2019-02-05 | Simplified temporary directory handling in AdminScriptTestCase. | Jon Dufresne | |
| Use tempfile.TemporaryDirectory() in AdminScriptTestCase.setUp() to create and destroy a temporary directory for each test. It removes the need for individual tests to delete files. For test classes that don't use the temporary directory, inherit from SimpleTestCase. | |||
| 2019-01-10 | Refs #28478 -- Deprecated TestCase's allow_database_queries and multi_db in ↵ | Simon Charette | |
| favor of databases. | |||
| 2018-12-24 | Refs #26840 -- Corrected SQLite connection mocking in a setup_databases() test. | Simon Charette | |
| The test was expecting connections used by DiscoverRunner.setup_databases() to be the ones defined in django.test.runner but this doesn't hold true since this method was made a proxy of django.test.utils.setup_databases. This broke the TransactionTestCase.serialized_rollback feature in the test suite because calls to create_db_test() cleared the test data persisted on connections objects. Added an assertions to prevent this from happening again. | |||
| 2018-12-22 | Renamed Sqlite and Sqlite3 references to SQLite. | Nick Pope | |
| 2018-12-15 | Fixed #30023 -- Prevented SQLite schema alterations while foreign key checks ↵ | Simon Charette | |
| are enabled. Prior to this change foreign key constraint references could be left pointing at tables dropped during operations simulating unsupported table alterations because of an unexpected failure to disable foreign key constraint checks. SQLite3 does not allow disabling such checks while in a transaction so they must be disabled beforehand. Thanks ezaquarii for the report and Carlton and Tim for the review. | |||
| 2018-10-30 | Fixed #29866 -- Made DiscoverRunner do tests tear down if running checks or ↵ | Jayden Kneller | |
| tests raises an exception. | |||
| 2018-08-23 | Fixed #29704 -- Fixed manage.py test --testrunner if it isn't followed by an ↵ | Matthijs Kooijman | |
| equals sign. | |||
| 2018-08-23 | Added manage.py test --testrunner tests. | Matthijs Kooijman | |
| 2018-07-11 | Fixed #29559 -- Fixed TransactionTestCase.reset_sequences for auto-created ↵ | Oliver Sauder | |
| m2m through models. | |||
| 2018-07-11 | Refs #9804 -- Fixed test for sequence reset of M2M with inherited through model. | Tim Graham | |
| 2017-02-10 | Added multi_db=True to test cases that access the 'other' db connection. | Tim Graham | |
| Fixed a failure in the context processors tests when running in reverse on MySQL due to an extra query after refs #27683. | |||
| 2017-02-03 | Fixed spelling of "nonexistent". | Tim Graham | |
| 2017-01-20 | Refs #23919 -- Removed django.test.mock Python 2 compatibility shim. | Tim Graham | |
| 2017-01-19 | Refs #23919 -- Stopped inheriting from object to define new style classes. | Simon Charette | |
| 2017-01-18 | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | |
| 2016-12-28 | Refs #25415 -- Fixed/silenced check errors in Django's test suite. | Adam Chainz | |
| 2016-11-14 | Fixed E305 flake8 warnings. | Ramin Farajpour Cami | |
| 2016-11-10 | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | |
| 2016-09-08 | Fixed #27170 -- Added DatabaseWrapper class attributes to ease subclassing. | Chris Jerdonek | |
| 2016-08-17 | Fixed #26840 -- Added test.utils.setup/teardown_databases(). | Andreas Pelme | |
| 2016-06-28 | Replaced use of TestCase.fail() with assertRaises(). | Tim Graham | |
| Also removed try/except/fail antipattern that hides exceptions. | |||
| 2016-04-08 | Fixed E128 flake8 warnings in tests/. | Tim Graham | |
| 2016-01-29 | Refs #26022 -- Used context manager version of assertRaises in tests. | Hasan | |
| 2016-01-14 | Fixed #25999 -- Removed promotion of RemovedInNextVersionWarning to loud by ↵ | Tim Graham | |
| default. | |||
| 2015-09-29 | Fixed #25466 -- Added backwards compatibility aliases for LoaderOrigin and ↵ | Tim Graham | |
| StringOrigin. Thanks Simon Charette for the DeprecationInstanceCheck class. | |||
| 2015-09-23 | Removed RemovedInDjango110Warning. | Tim Graham | |
| 2015-09-09 | Cloned databases for running tests in parallel. | Aymeric Augustin | |
| 2015-09-05 | Moved an import to the toplevel. | Aymeric Augustin | |
| 2015-06-24 | Renamed RemovedInDjangoXYWarnings for new roadmap. | Tim Graham | |
| Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more. | |||
| 2015-05-09 | Mocked db.connections in test_runner tests | Claude Paroz | |
| 2015-03-25 | Fixed #24394 -- Allowed running tests with empty default dictionary. | Andrei Kulakov | |
| 2015-02-17 | Refs #24324 -- Fixed Python 2 test failures when path to Django source ↵ | Tim Graham | |
| contains non-ASCII characters. | |||
| 2015-02-10 | Disallowed importing concrete models without an application. | Aymeric Augustin | |
| Removed fragile algorithm to find which application a model belongs to. Fixed #21680, #21719. Refs #21794. | |||
| 2015-02-06 | Sorted imports with isort; refs #23860. | Tim Graham | |
| 2014-12-01 | Fixed #23289 -- Added mock as a test dependency. | Tim Graham | |
