Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Refs #33476 -- Applied Black's 2023 stable style. | David Smith | 2023-02-01 | 1 | -1/+0 |
| | | | | | | | | Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0 | ||||
* | Refs #32655 -- Removed extra_tests argument for ↵ | Mariusz Felisiak | 2023-01-17 | 1 | -40/+0 |
| | | | | | | DiscoverRunner.build_suite()/run_tests(). Per deprecation timeline. | ||||
* | Refs #32446 -- Removed SERIALIZE test database setting per deprecation timeline. | Mariusz Felisiak | 2023-01-17 | 1 | -25/+1 |
| | |||||
* | Avoided assignment followed by immediate return. | Nick Pope | 2022-10-31 | 1 | -2/+1 |
| | | | | | | | | Identified using the following command: $ pcre2grep --line-number --multiline --recursive \ "(?s)(\n +)(\w+) = [^\n]+\1return \2;?$" \ django docs extras js_tests scripts tests | ||||
* | Refs #34010 -- Made --debug-mode work for parallel tests using spawn. | Adam Johnson | 2022-09-28 | 1 | -1/+6 |
| | | | | | | Bug in 3b3f38b3b09b0f2373e51406ecb8c9c45d36aebc. Thanks Kevin Renskers for the report. | ||||
* | Fixed #33719 -- Fixed test command crash when running in parallel. | Mariusz Felisiak | 2022-05-19 | 1 | -0/+41 |
| | | | | | Thanks Pēteris Caune for the report. Regression in 3b3f38b3b09b0f2373e51406ecb8c9c45d36aebc. | ||||
* | Refs #31169 -- Prevented infinite loop in parallel tests with custom test ↵ | David Smith | 2022-03-17 | 1 | -0/+45 |
| | | | | | | | | runner when using spawn. Regression in 3b3f38b3b09b0f2373e51406ecb8c9c45d36aebc. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> | ||||
* | Fixed #31169 -- Adapted the parallel test runner to use spawn. | David Smith | 2022-03-15 | 1 | -6/+4 |
| | | | | | Co-authored-by: Valz <ahmadahussein0@gmail.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk> | ||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 1 | -290/+444 |
| | |||||
* | Refs #31621 -- Fixed handling --parallel option in test management command ↵ | Mariusz Felisiak | 2021-08-19 | 1 | -0/+18 |
| | | | | | | | and runtests.py. Regression in ae89daf46f83a7b39d599d289624c3377bfa4ab1. Thanks Tim Graham for the report. | ||||
* | Refs #31621 -- Added more tests for test --parallel option. | Mariusz Felisiak | 2021-08-19 | 1 | -1/+64 |
| | |||||
* | Fixed #32655 -- Deprecated extra_tests argument for ↵ | Jacob Walls | 2021-07-16 | 1 | -0/+39 |
| | | | | DiscoverRunner.build_suite()/run_tests(). | ||||
* | Fixed #32914 -- Prevented test --shuffle from skipping test methods. | Chris Jerdonek | 2021-07-12 | 1 | -0/+26 |
| | | | | | | | "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. | ||||
* | Fixed #24522 -- Added a --shuffle option to DiscoverRunner. | Chris Jerdonek | 2021-07-08 | 1 | -1/+66 |
| | |||||
* | Refs #32655 -- Improved error if iter_test_cases() is passed a string. | Chris Jerdonek | 2021-06-29 | 1 | -1/+9 |
| | |||||
* | Fixed #32529 -- Delayed creating a test suite in build_suite(). | Chris Jerdonek | 2021-03-11 | 1 | -7/+8 |
| | |||||
* | Refs #32489 -- Doc'd and tested iter_test_cases() support for an iterable of ↵ | Chris Jerdonek | 2021-03-11 | 1 | -0/+14 |
| | | | | tests. | ||||
* | Fixed #32516 -- Fixed reorder_suite() with duplicates and reverse=True. | Chris Jerdonek | 2021-03-09 | 1 | -23/+50 |
| | |||||
* | Fixed #32489 -- Added iter_test_cases() to iterate over a TestSuite. | Chris Jerdonek | 2021-03-05 | 1 | -0/+81 |
| | | | | | | This also makes partition_suite_by_type(), partition_suite_by_case(), filter_tests_by_tags(), and DiscoverRunner._get_databases() to use iter_test_cases(). | ||||
* | Fixed #32446 -- Deprecated SERIALIZE test database setting. | Simon Charette | 2021-02-24 | 1 | -3/+12 |
| | | | | | | | | | | | 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. | ||||
* | Fixed #29052 -- Made test database creation preserve alias order and prefer ↵ | Harm Geerts | 2021-02-16 | 1 | -1/+30 |
| | | | | | | | | | | | | | | 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. | ||||
* | Fixed isolation of test_runner.EmptyDefaultDatabaseTest. | Mariusz Felisiak | 2020-12-10 | 1 | -5/+6 |
| | | | | This fixes test_runner.test_debug_sql.TestDebugSQL. test_setupclass_exception when run in reverse. | ||||
* | Refs #31811 -- Added optional timing outputs to the test runner. | Ahmad A. Hussein | 2020-08-13 | 1 | -1/+6 |
| | |||||
* | Corrected several typos in string literals and test names. | Min ho Kim | 2019-08-07 | 1 | -1/+1 |
| | |||||
* | Simplified temporary directory handling in AdminScriptTestCase. | Jon Dufresne | 2019-02-05 | 1 | -9/+3 |
| | | | | | | | | 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. | ||||
* | Refs #28478 -- Deprecated TestCase's allow_database_queries and multi_db in ↵ | Simon Charette | 2019-01-10 | 1 | -1/+1 |
| | | | | favor of databases. | ||||
* | Refs #26840 -- Corrected SQLite connection mocking in a setup_databases() test. | Simon Charette | 2018-12-24 | 1 | -10/+22 |
| | | | | | | | | | | | | 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. | ||||
* | Renamed Sqlite and Sqlite3 references to SQLite. | Nick Pope | 2018-12-22 | 1 | -2/+1 |
| | |||||
* | Fixed #30023 -- Prevented SQLite schema alterations while foreign key checks ↵ | Simon Charette | 2018-12-15 | 1 | -4/+3 |
| | | | | | | | | | | | | | 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. | ||||
* | Fixed #29866 -- Made DiscoverRunner do tests tear down if running checks or ↵ | Jayden Kneller | 2018-10-30 | 1 | -0/+57 |
| | | | | tests raises an exception. | ||||
* | Fixed #29704 -- Fixed manage.py test --testrunner if it isn't followed by an ↵ | Matthijs Kooijman | 2018-08-23 | 1 | -0/+9 |
| | | | | equals sign. | ||||
* | Added manage.py test --testrunner tests. | Matthijs Kooijman | 2018-08-23 | 1 | -2/+33 |
| | |||||
* | Fixed #29559 -- Fixed TransactionTestCase.reset_sequences for auto-created ↵ | Oliver Sauder | 2018-07-11 | 1 | -0/+3 |
| | | | | m2m through models. | ||||
* | Refs #9804 -- Fixed test for sequence reset of M2M with inherited through model. | Tim Graham | 2018-07-11 | 1 | -9/+14 |
| | |||||
* | Added multi_db=True to test cases that access the 'other' db connection. | Tim Graham | 2017-02-10 | 1 | -0/+1 |
| | | | | Fixed a failure in the context processors tests when running in reverse on MySQL due to an extra query after refs #27683. | ||||
* | Fixed spelling of "nonexistent". | Tim Graham | 2017-02-03 | 1 | -1/+1 |
| | |||||
* | Refs #23919 -- Removed django.test.mock Python 2 compatibility shim. | Tim Graham | 2017-01-20 | 1 | -1/+2 |
| | |||||
* | Refs #23919 -- Stopped inheriting from object to define new style classes. | Simon Charette | 2017-01-19 | 1 | -1/+1 |
| | |||||
* | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | 2017-01-18 | 1 | -2/+0 |
| | |||||
* | Refs #25415 -- Fixed/silenced check errors in Django's test suite. | Adam Chainz | 2016-12-28 | 1 | -2/+0 |
| | |||||
* | Fixed E305 flake8 warnings. | Ramin Farajpour Cami | 2016-11-14 | 1 | -0/+1 |
| | |||||
* | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | 2016-11-10 | 1 | -3/+3 |
| | |||||
* | Fixed #27170 -- Added DatabaseWrapper class attributes to ease subclassing. | Chris Jerdonek | 2016-09-08 | 1 | -3/+3 |
| | |||||
* | Fixed #26840 -- Added test.utils.setup/teardown_databases(). | Andreas Pelme | 2016-08-17 | 1 | -6/+7 |
| | |||||
* | Replaced use of TestCase.fail() with assertRaises(). | Tim Graham | 2016-06-28 | 1 | -16/+5 |
| | | | Also removed try/except/fail antipattern that hides exceptions. | ||||
* | Fixed E128 flake8 warnings in tests/. | Tim Graham | 2016-04-08 | 1 | -2/+1 |
| | |||||
* | Refs #26022 -- Used context manager version of assertRaises in tests. | Hasan | 2016-01-29 | 1 | -1/+2 |
| | |||||
* | Fixed #25999 -- Removed promotion of RemovedInNextVersionWarning to loud by ↵ | Tim Graham | 2016-01-14 | 1 | -28/+0 |
| | | | | default. | ||||
* | Fixed #25466 -- Added backwards compatibility aliases for LoaderOrigin and ↵ | Tim Graham | 2015-09-29 | 1 | -3/+3 |
| | | | | | | StringOrigin. Thanks Simon Charette for the DeprecationInstanceCheck class. | ||||
* | Removed RemovedInDjango110Warning. | Tim Graham | 2015-09-23 | 1 | -2/+3 |
| |