django/tests/queries
Simon Charette d5add5d3a2 [3.2.x] Fixed #32632, Fixed #32657 -- Removed flawed support for Subquery deconstruction.
Subquery deconstruction support required implementing complex and
expensive equality rules for sql.Query objects for little benefit as
the latter cannot themselves be made deconstructible to their reference
to model classes.

Making Expression @deconstructible and not BaseExpression allows
interested parties to conform to the "expression" API even if they are
not deconstructible as it's only a requirement for expressions allowed
in Model fields and meta options (e.g. constraints, indexes).

Thanks Phillip Cutter for the report.

This also fixes a performance regression in bbf141bcdc.

Backport of c8b6594305 from main
2021-04-28 20:27:42 +02:00
..
__init__.py Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
models.py Fixed some queries tests when primary key values are large. 2020-10-27 06:39:52 +01:00
test_bulk_update.py Refs #31395 -- Relied on setUpTestData() test data isolation in various tests. 2020-05-15 20:22:56 +02:00
test_db_returning.py Refs #29444 -- Removed redundant DatabaseFeatures.can_return_multiple_columns_from_insert. 2019-09-24 10:37:22 +02:00
test_deprecation.py Fixed #30988 -- Deprecated the InvalidQuery exception. 2019-11-18 14:06:51 +01:00
test_explain.py Fixed #32178 -- Allowed database backends to skip tests and mark expected failures. 2020-12-10 18:00:57 +01:00
test_iterator.py Refs #29563 -- Fixed SQLCompiler.execute_sql() to respect DatabaseFeatures.can_use_chunked_reads. 2018-07-25 18:08:57 -04:00
test_q.py [3.2.x] Fixed #32632, Fixed #32657 -- Removed flawed support for Subquery deconstruction. 2021-04-28 20:27:42 +02:00
test_qs_combinators.py [3.2.x] Fixed #32627 -- Fixed QuerySet.values()/values_list() crash on combined querysets ordered by unannotated columns. 2021-04-13 06:16:19 +02:00
test_query.py [3.2.x] Fixed #32632, Fixed #32657 -- Removed flawed support for Subquery deconstruction. 2021-04-28 20:27:42 +02:00
tests.py [3.2.x] Used assertCountEqual() in ExcludeTests.test_exclude_subquery(). 2021-04-22 14:42:47 +02:00