summaryrefslogtreecommitdiff
path: root/tests/dates
Commit message (Collapse)AuthorAgeFilesLines
* Replaced assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() ↵Mariusz Felisiak2022-10-071-1/+1
| | | | | where appropriate. Follow up to 3f7b3275627385f8f7531fca01cdda50d4ec6b6e.
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-15/+22
|
* Refs #32508 -- Raised Type/ValueError instead of using "assert" in ↵Daniyal2021-07-151-2/+3
| | | | | | django.db.models. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Removed unused __str__() methods in tests models.Author: Mads Jensen2020-04-151-6/+0
| | | | | Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-Authored-By: Hasan Ramezani <hasan.r67@gmail.com>
* Fixed field default in dates tests.Mariusz Felisiak2020-01-181-1/+1
|
* Refs #26022 -- Used context manager version of assertRaisesMessage in tests.Jon Dufresne2019-04-291-5/+3
| | | | Follow up to 253adc2b8a52982139d40c4f55b3fd446e1cb8f3.
* Fixed #28650 -- Added TruncWeek database function.Sigurd Ljødal2018-01-271-1/+8
|
* Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz2017-01-181-3/+0
|
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-182-4/+0
|
* Made FieldError/FieldDoesNotExist messages uniform across Python versions.François Freitag2016-09-171-4/+2
| | | Removed possible u'' prefixes on Python 2.
* Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with ↵Mads Jensen2016-09-131-13/+8
| | | | assertSequenceEqual().
* Refs #26022 -- Replaced six.assertRaisesRegex with assertRaisesMessage as ↵Hasan2016-01-291-17/+4
| | | | appropriate.
* Refs #26022 -- Used context manager version of assertRaises in tests.Hasan2016-01-291-4/+2
|
* Fixed #25470 -- Avoided unnecessary, expensive DATETIME typecast on MySQL.Mariusz Felisiak2015-10-212-2/+34
|
* Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella2015-07-271-1/+1
| | | | ForeignKey/OneToOneField
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-1/+1
|
* Fixed #23867 -- removed DateQuerySet hacksAnssi Kääriäinen2014-11-261-3/+4
| | | | | | The .dates() queries were implemented by using custom Query, QuerySet, and Compiler classes. Instead implement them by using expressions and database converters APIs.
* Split tests.basic.ModelTests in several tests; refs #18586.zsoldosp2014-06-251-0/+39
|
* PEP8 cleanupJason Myers2013-11-021-0/+2
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Removed most of absolute_import importsClaude Paroz2013-07-291-1/+1
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-263-0/+111