summaryrefslogtreecommitdiff
path: root/tests/test_utils/test_testcase.py
AgeCommit message (Collapse)Author
2026-02-10Added various missing test skips observed on MongoDB.Tim Graham
2024-09-17Refs #35660 -- Updated TransactionTestCase methods into class or static methods.Jacob Walls
2024-02-26Refs #32114 -- Fixed test crash on non-picklable objects in subtests when ↵David Wobrock
PickleError is raised. Related to the https://github.com/python/cpython/issues/73373. Follow up to c09e8f5fd8f977bf16e9ec5d11b370151fc81ea8.
2024-02-21Fixed #32114 -- Fixed parallel test crash on non-picklable objects in subtests.David Wobrock
2022-04-12Fixed #33633 -- Skipped some test_utils tests on databases that don't ↵zhangyangyu
support transactions.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-12-03Fixed #33333 -- Fixed setUpTestData() crash with models.BinaryField on ↵Mariusz Felisiak
PostgreSQL. This makes models.BinaryField pickleable on PostgreSQL. Regression in 3cf80d3fcf7446afdde16a2be515c423f720e54d. Thanks Adam Zimmerman for the report.
2021-11-15Fixed #33278 -- Improved error for connection/query attempts against ↵SwastikTripathi
disallowed databases in tests.
2021-09-20Refs #31395 -- Removed support for assigning objects which don't support ↵Mariusz Felisiak
deepcopy() in setUpTestData(). Per deprecation timeline.
2021-07-05Refs #32508 -- Raised ImproperlyConfigured/TypeError instead of using "assert".Mateo Radman
2020-05-15Fixed #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.
2019-01-14Refs #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-10Refs #28478 -- Deprecated TestCase's allow_database_queries and multi_db in ↵Simon Charette
favor of databases.
2016-02-13Fixed #11665 -- Made TestCase check deferrable constraints after each test.Jon Dufresne