summaryrefslogtreecommitdiff
path: root/tests/queries/tests.py
AgeCommit message (Collapse)Author
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
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-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-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
2015-06-15Fixed flake8 warnings on Python 3.Tim Graham
2015-04-28Fixed #24719 -- Restored the ability to use interators as queryset related ↵Aric Coady
object filters.
2015-04-16Fixed #24605 -- Fixed incorrect reference to alias in subquery.Anssi Kääriäinen
Thanks to charettes and priidukull for investigating the issue, and to kurevin for the report.
2015-04-14Fixed #24277 -- Added exception when dict used in QuerySet filteringAlex Wilson
2015-03-25Refs #24267 -- Implemented lookups for related fieldsAnssi Kääriäinen
Previously related fields didn't implement get_lookup, instead related fields were treated specially. This commit removed some of the special handling. In particular, related fields return Lookup instances now, too. Other notable changes in this commit is removal of support for annotations in names_to_path().
2015-03-23Fixed #23697 -- Improved ForeignObject.get_lookup_constraint() error message.Michael Blatherwick