| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2021-12-03 | [4.0.x] Fixed #33333 -- Fixed setUpTestData() crash with models.BinaryField ↵ | Mariusz Felisiak | |
| on PostgreSQL. This makes models.BinaryField pickleable on PostgreSQL. Regression in 3cf80d3fcf7446afdde16a2be515c423f720e54d. Thanks Adam Zimmerman for the report. Backport of 2c7846d992ca512d36a73f518205015c88ed088c from main. | |||
| 2021-08-30 | Fixed #33054 -- Made TestCase.captureOnCommitCallbacks() capture callbacks ↵ | Eugene Morozov | |
| recursively. | |||
| 2021-07-05 | Refs #32508 -- Raised ImproperlyConfigured/TypeError instead of using "assert". | Mateo Radman | |
| 2021-06-04 | Made SerializeMixin check lockfile attr at import time. | Adam Johnson | |
| 2021-03-19 | Fixed #32556 -- Fixed handling empty string as non-boolean attributes value ↵ | Baptiste Mispelon | |
| by assertHTMLEqual(). | |||
| 2021-03-18 | Fixed #32556 -- Fixed assertHTMLEqual() to handle empty string as boolean ↵ | Hasan Ramezani | |
| attributes value. | |||
| 2021-03-02 | Refs #21429 -- Added SimpleTestCase.assertNoLogs() on Python < 3.10. | François Freitag | |
| 2021-02-26 | Fixed typo in assertQuerysetEqual() exception message. | Jacob Walls | |
| 2021-02-22 | Fixed #32469 -- Made assertQuerysetEqual() respect maxDiff when ordered=False. | Nick Pope | |
| 2020-11-06 | Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly. | Hasan Ramezani | |
| This also replaces assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate. Co-authored-by: Peter Inglesby <peter.inglesby@gmail.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2020-09-24 | Fixed #27906 -- Fixed test tools counting of HTML matches for subsets of ↵ | Jacob Walls | |
| elements. Previously examples such as '<a/><b/>' would not match in '<a/><b/><c/>'. | |||
| 2020-09-07 | Fixed #31944 -- Used addCleanup() to register TestContextDecorator cleanups. | François Freitag | |
| Cleanups from addCleanup() are scheduled to happen in reverse order to the order they are added (LIFO). Ensures each cleanup is executed from the innermost to the outermost. | |||
| 2020-07-13 | Fixed #30457 -- Added TestCase.captureOnCommitCallbacks(). | Adam Johnson | |
| 2020-05-15 | Fixed #31395 -- Made setUpTestData enforce in-memory data isolation. | Simon Charette | |
| Since it's introduction in Django 1.8 setUpTestData has been suffering from a documented but confusing caveat due to its sharing of attributes assigned during its execution with all test instances. By keeping track of class attributes assigned during the setUpTestData phase its possible to ensure only deep copies are provided to test instances on attribute retreival and prevent manual setUp gymnastic to work around the previous lack of in-memory data isolation. Thanks Adam Johnson for the extensive review. | |||
| 2020-04-20 | Capitalized Unicode in docs, strings, and comments. | Jon Dufresne | |
| 2020-04-15 | Removed unused __str__() methods in tests models. | Author: Mads Jensen | |
| Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-Authored-By: Hasan Ramezani <hasan.r67@gmail.com> | |||
| 2020-02-14 | Removed unused and incorrect PossessedCar.__str__() method in test_utils. | Mariusz Felisiak | |
| PossessedCar doesn't have a color. | |||
| 2020-02-13 | Fixed #31250 -- Ignored processing instructions in ↵ | yura | |
| assertXMLEqual()/assertXMLNotEqual(). | |||
| 2020-02-07 | Used assertRaisesMessage() in various tests. | Hasan Ramezani | |
| 2020-02-06 | Fixed #31233 -- Closed database connections and cursors after use. | Jon Dufresne | |
| 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-10-18 | Fixed #27391 -- Implemented SimpleTestCase.debug(). | Pavel Savchenko | |
| debug() should bubbled up exceptions if occurring in test, but behave the same as run() when no exceptions occurred. | |||
| 2019-10-18 | Refs #27391 -- Added more tests for SimpleTestCase. | Pavel Savchenko | |
| 2019-09-10 | Refs #28478 -- Removed support for TestCase's allow_database_queries and ↵ | Mariusz Felisiak | |
| multi_db per deprecation timeline. | |||
| 2019-05-24 | Fixed #30497 -- Ignored document type in assertXMLEqual()/assertXMLNotEqual(). | Caio Ariede | |
| 2019-05-10 | Fixed #30470 -- Added assertHTMLEqual() support for all self closing tags. | Jon Dufresne | |
| Support for the following tags was added: area, embed, param, track, and wbr. The full list of self closing tags is documented at: https://html.spec.whatwg.org/#void-elements | |||
| 2019-05-09 | Fixed #30468 -- Fixed assertHTMLEqual() to handle all ASCII whitespace in a ↵ | Jon Dufresne | |
| class attribute. | |||
| 2019-05-09 | Refs #27804 -- Used subTest() in HTMLEqualTests.test_self_closing_tags. | Jon Dufresne | |
| 2019-05-09 | Refs #30399 -- Made assertHTMLEqual normalize character and entity references. | Jon Dufresne | |
| 2019-04-29 | Refs #26022 -- Used context manager version of assertRaisesMessage in tests. | Jon Dufresne | |
| Follow up to 253adc2b8a52982139d40c4f55b3fd446e1cb8f3. | |||
| 2019-02-09 | Removed default empty content argument from HttpResponse calls. | Jon Dufresne | |
| 2019-02-08 | Fixed #30004 -- Changed default FILE_UPLOAD_PERMISSION to 0o644. | Himanshu Lakhara | |
| 2019-01-21 | Fixed #30121 -- Fixed assertURLEqual() crash with reverse_lazy() URLs. | Jon Dufresne | |
| Regression in 24959e48d949a20be969f649ece3576dbc7ce422. | |||
| 2019-01-14 | Refs #28478 -- Prevented database feature based skipping on tests ↵ | Simon Charette | |
| disallowing queries. Database features may require a connection to be established to determine whether or not they are enabled. | |||
| 2019-01-14 | Refs #28478 -- Prevented connection attempts against disallowed databases in ↵ | Simon Charette | |
| tests. Mocking connect as well as cursor methods makes sure an appropriate error message is surfaced when running a subset of test attempting to access a a disallowed database. | |||
| 2019-01-10 | Refs #28478 -- Deprecated TestCase's allow_database_queries and multi_db in ↵ | Simon Charette | |
| favor of databases. | |||
| 2018-12-31 | Updated test URL patterns to use path() and re_path(). | Tim Graham | |
| 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-27 | Switched setUp() to setUpTestData() where possible in Django's tests. | Simon Charette | |
| 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-27 | Fixed #28606 -- Deprecated CachedStaticFilesStorage. | Tim Graham | |
| 2018-08-17 | Fixed #29024 -- Made TestContextDecorator call disable() if setUp() raises ↵ | Kamil | |
| an exception. | |||
| 2018-06-20 | Fixed #27398 -- Added an assertion to compare URLs, ignoring the order of ↵ | Jan Pieter Waagmeester | |
| their query strings. | |||
| 2018-05-09 | Fixed #29363 -- Added SimpleTestCase.assertWarnsMessage(). | Morgan Aubert | |
| 2018-05-02 | Fixed #29375 -- Removed empty action attribute on HTML forms. | CHI Cheng | |
| 2017-09-25 | Fixed #27857 -- Dropped support for Python 3.4. | Tim Graham | |
| 2017-07-29 | Used assertRaisesMessage() to test Django's error messages. | Mads Jensen | |
| 2017-06-16 | Fixed #27539 -- Made TransactionTestCase._pre_setup() clear the queries_log ↵ | reficul31 | |
| so it's less likely to overflow. TransactionTestCase.assertNumQueries() fails in an overflow situation. | |||
| 2017-05-20 | Fixed #28180 -- Numbered queries in assertNumQueries failure output | Claude Paroz | |
| Thanks Tim Graham for the test part. | |||
| 2017-05-18 | Fixed #28203 -- Ignored connection configuration queries in assertNumQueries(). | François Freitag | |
