summaryrefslogtreecommitdiff
path: root/tests/queries
AgeCommit message (Collapse)Author
2017-11-12[1.11.x] Fixed #28781 -- Added QuerySet.values()/values_list() support for ↵Mariusz Felisiak
union(), difference(), and intersection(). Thanks Tim Graham for the review. Backport of 2d3cc94284674638c334670903d49565039d77ae from master
2017-09-01[1.11.x] Fixed #26522 -- Fixed a nondeterministic AssertionError in QuerySet ↵Bo Marchman
combining. Thanks Andrew Brown for the test case. Backport of 9bbb6e2d2536c4ac20dc13a94c1f80494e51f8d9 from master
2017-07-15[1.11.x] Fixed #28399 -- Fixed QuerySet.count() for union(), difference(), ↵Florian Apolloner
and intersection() queries. Backport of adab280cefb15659c39558ac26ea392b0a1e456c from master
2017-07-10[1.11.x] Fixed #28378 -- Fixed union() and difference() when combining with ↵Mariusz Felisiak
a queryset raising EmptyResultSet. Thanks Jon Dufresne for the report. Thanks Tim Graham and Simon Charette for the reviews. Backport of ca74e563500e291480f1976b58fcd34aac768dca from master
2017-07-10[1.11.x] Added test for intersection() when combining with a queryset ↵Mariusz Felisiak
raising EmptyResultSet. Backport of 9bca0d0b38d941fe7f3842cb2259d018823ed25e from master
2017-06-13[1.11.x] Fixed #28293 -- Fixed union(), intersection(), and difference() ↵Mariusz Felisiak
when combining with an EmptyQuerySet. Thanks Jon Dufresne for the report and Tim Graham for the review. Backport of 82175ead723f8fa3f9271fbd4b24275097029aab from master
2017-04-23[1.11.x] Fixed #28101 -- Fixed a regression with nested __in subquery ↵Simon Charette
lookups and to_field. Thanks Kristian Klette for the report and Tim for the help. Backport of 8ef35468b660e1c25af67a8299202b8bc108679f from master
2017-01-14Fixed #27718 -- Added QuerySet.union(), intersection(), difference().Florian Apolloner
Thanks Mariusz Felisiak for review and Oracle assistance. Thanks Tim Graham for review and writing docs.
2017-01-14Changed a test to be consistent when run in parallel.Josh Smeaton
This particular test was sometimes failing when running the test suite in parallel. The `id` was different depending on the order the tests were run. The test was incorrectly comparing model primary keys rather than ensuring they didn't change.
2016-11-14Fixed #27463 -- Fixed E741 flake8 warnings.Ramin Farajpour Cami
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-10-14Tested QuerySet compatibility check.Tim Graham
cdfdcf4b70bebfc68871df885387790c6afbc23c missed this test.
2016-10-13Tested invalid QuerySet.order_by() arguments.Tim Graham
2016-09-13Fixed a couple ordering dependent tests on Oracle broken by refs #27203.Tim Graham
2016-09-13Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with ↵Mads Jensen
assertSequenceEqual().
2016-09-09Refs #25415 -- Fixed invalid models in the test suite.Adam Chainz
2016-08-17Refs #26983 -- Added test for isnull lookup to CharField with primary_key=True.Chris Lamb
2016-08-08Moved EmpytResultSet to django.core.exceptions.Johannes Dollinger
This removes the need for some inner imports.
2016-08-04Fixed #26983 -- Fixed isnull filtering on ForeignKey with to_fieldClaude Paroz
Thanks weidwonder for the report.
2016-07-08Refs #25774, #26348 -- Allowed Trunc functions to operate with time fields.Simon Charette
Thanks Josh for the amazing testing setup and Tim for the review.
2016-06-28Replaced use of TestCase.fail() with assertRaises().Tim Graham
Also removed try/except/fail antipattern that hides exceptions.
2016-06-16Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne
2016-05-18Fixed #25774 -- Refactor datetime expressions into public APIJosh Smeaton
2016-05-04Fixed #22936 -- Obsoleted Field.get_prep_lookup()/get_db_prep_lookup()Claude Paroz
Thanks Tim Graham for completing the initial patch.
2016-04-23Fixed wrong field data type in queries testClaude Paroz
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-04-04Fixed W503 flake8 warnings.Tim Graham
2016-03-28Sorted single letter imports per the latest version of isort.Tim Graham
2016-03-19Fixed #26373 -- Fixed reverse lookup crash with a ForeignKey to_field in a ↵Jason Parrott
subquery.
2016-02-11Fixed #26196 -- Made sure __in lookups use to_field as default.Anssi Kääriäinen
Thanks Simon Charette for the test.
2016-02-04Made multiline assertRaises* conform to flake8's E128 rule.Hasan
2016-01-29Refs #26022 -- Replaced six.assertRaisesRegex with assertRaisesMessage as ↵Hasan
appropriate.
2016-01-29Refs #26022 -- Used context manager version of assertRaisesMessage in tests.Hasan
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2015-12-15Fixed #25894 -- Fixed evaluation of zero-length slices of QuerySet.values().Sergey Fedoseev
2015-12-03Fixed many spelling mistakes in code, comments, and docs.Josh Soref
2015-10-27Fixed #25550 -- Deprecated direct assignment to the reverse side of a ↵Tim Graham
related set.
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-09-11Fixed #25382 -- Removed obsolete references to DateQuerySet.Renato Oliveira
2015-09-05Fixed #24525 -- Fixed AssertionError in some complex queries.Tim Graham
Thanks Anssi Kääriäinen for providing the solution.
2015-09-04Fixed #19263 -- Fixed crash when filtering using __in and an empty QuerySet.Tim Graham
Thanks Marcin Biernat for the initial patch and tests.
2015-08-31Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant
2015-08-17Refs #23266 -- Fixed ticket number reference in a queries test.Tim Graham
2015-08-08Used skipUnlessDBFeature where appropriate.Simon Charette
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-07-20Refs #23622 -- Added tests to ensure ordering is retained for distinct on ↵Anssi Kääriäinen
fields subqueries. The ticket was already fixed by b68212f539f206679580afbfd008e7d329c9cd31. Thanks to Beauhurst for commissioning the work on this ticket.
2015-07-20Fixed test with incorrect assumption about pk values.Anssi Kääriäinen
The test results were dependent on the order in which the tests were run.
2015-07-13Refs #24090 -- Added a test for multi-table inheritance + subqueries.Anssi Kääriäinen
Ticket #24090 was already fixed by b68212f539f206679580afbfd008e7d329c9cd31, this commit adds tests to verify this is indeed the case. Thanks to Beauhurst for commissioning the work on this ticket.
2015-07-09Fixed a CaptureQueriesContext usage in queries tests.Simon Charette
2015-07-09Added a regression test for get() ordering clearing.Simon Charette