| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2021-02-16 | [3.2.x] Fixed #29052 -- Made test database creation preserve alias order and ↵ | Harm Geerts | |
| prefer 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. Backport of 06e5f7ae1639f1e275e7cc1076dc70ca3ebaa946 from master | |||
| 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-11-28 | Fixed #32227 -- Prevented crash when setUpTestData() errors with --debug-sql. | Adam Johnson | |
| Thanks Mariusz Felisiak for the report. | |||
| 2020-08-13 | Refs #31811 -- Added optional timing outputs to the test runner. | Ahmad A. Hussein | |
| 2020-07-10 | Fixed #31509 -- Made DiscoverRunner enable faulthandler by default. | ovkulkarni | |
| 2020-01-20 | Refs #31117 -- Made various tests properly handle unexpected databases aliases. | Matthijs Kooijman | |
| - Used selected "databases" instead of django.db.connections. - Made routers in tests.migrations skip migrations on unexpected databases. - Added DiscoverRunnerGetDatabasesTests.assertSkippedDatabases() hook which properly asserts messages about skipped databases. | |||
| 2019-12-09 | Fixed #27430 -- Added -b/--buffer option to DiscoverRunner. | Baptiste Mispelon | |
| 2019-12-09 | Refs #30676 -- Added test for invalid --pdb and --parallel usage in ↵ | Mariusz Felisiak | |
| DiscoverRunner. | |||
| 2019-10-23 | Refs #29926 -- Bumped minimum tblib version to 1.5.0 in test requirements. | Mariusz Felisiak | |
| 2019-10-22 | Refs #29926 -- Skipped RemoteTestResultTest.test_add_failing_subtests() on ↵ | Mariusz Felisiak | |
| Python 3.8+ and tblib <= 1.4.0. | |||
| 2019-08-07 | Corrected several typos in string literals and test names. | Min ho Kim | |
| 2019-04-30 | Fixed #30245 -- Added -k option to DiscoverRunner. | François Freitag | |
| 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 | Fixed #28478 -- Make DiscoverRunner skip creating unused test databases. | Simon Charette | |
| SimpleTestCase.databases makes it possible to determine the set of databases required to run the discovered tests. | |||
| 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-12-05 | Reverted "Fixed #25251 -- Made data migrations available in ↵ | Tim Graham | |
| TransactionTestCase when using --keepdb." This reverts commits b3b1d3d45fc066367f4fcacf0b06f72fcd00a9c6 and 9fa0d3786febf36c87ef059a39115aa1ce3326e8 due to reverse build failures for which a solution isn't forthcoming. | |||
| 2018-11-29 | Refs #25251 -- Filtered out skipped tests when processing the test suite to ↵ | romgar | |
| set _next_serialized_rollback. | |||
| 2018-11-27 | Switched TestCase to SimpleTestCase where possible in Django's tests. | Tim Graham | |
| 2018-11-06 | Fixed #25251 -- Made data migrations available in TransactionTestCase when ↵ | romgar | |
| using --keepdb. Data loaded in migrations were restored at the beginning of each TransactionTestCase and all the tables are truncated at the end of these test cases. If there was a TransactionTestCase at the end of the test suite, the migrated data weren't restored in the database (especially unexpected when using --keepdb). Now data is restored at the end of each TransactionTestCase. | |||
| 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 | |
| 2018-07-02 | Removed parser.add_arguments() arguments that match the defaults. | Claude Paroz | |
| 2018-02-13 | Fixed #29106 -- Made DiscoverRunner display selected test tags. | Sanyam Khurana | |
| 2018-01-08 | Fixed #28869 -- Made tagged test classes and methods inherit tags from parents. | Will Ayd | |
| 2018-01-04 | Reorganized test_runner test apps. | Tim Graham | |
| 2017-11-17 | Refs #28814 -- Fixed test_runner failure on Python 3.7. | Tim Graham | |
| Due to https://bugs.python.org/issue30399. | |||
| 2017-09-25 | Fixed #27857 -- Dropped support for Python 3.4. | Tim Graham | |
| 2017-07-05 | Fixed #28360 -- Fixed test runner crash with --debug-sql on fail/error in ↵ | Sergey Fedoseev | |
| subTest. | |||
| 2017-05-04 | Fixed #28160 -- Prevented hiding GDAL exceptions when it's not installed. | 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-25 | Refs #23919 -- Replaced super(ClassName, self) with super(). | chillaranand | |
| 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 most of remaining six usage | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-01-18 | Refs #23919 -- Removed six.PY2/PY3 usage | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 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-10-06 | Fixed #27301 -- Prevented exceptions that fail unpickling from crashing the ↵ | Adam Wróbel | |
| parallel test runner. | |||
| 2016-09-08 | Fixed #27170 -- Added DatabaseWrapper class attributes to ease subclassing. | Chris Jerdonek | |
| 2016-08-26 | Fixed #26942 -- Added support for subtests during parallel testing. | Chris Jerdonek | |
| 2016-08-17 | Fixed #26840 -- Added test.utils.setup/teardown_databases(). | Andreas Pelme | |
