François Freitag
|
ad4a8acdb5
|
Fixed #11557 -- Added support for a list of fields in Meta.get_latest_by and QuerySet.earliest()/latest().
|
2017-09-05 20:14:54 -04:00 |
François Freitag
|
663946463d
|
Removed hardcoding from get_earliest_or_latest tests' tearDown().
|
2017-09-05 10:04:22 -04:00 |
Sergey Fedoseev
|
aadd3aeb2b
|
Avoided creating temporary lists for obtaining the first item.
|
2017-07-31 11:02:23 -04:00 |
Mads Jensen
|
a51c4de194
|
Used assertRaisesMessage() to test Django's error messages.
|
2017-07-29 19:07:23 -04:00 |
Claude Paroz
|
d7b9aaa366
|
Refs #23919 -- Removed encoding preambles and future imports
|
2017-01-18 09:55:19 +01:00 |
za
|
321e94fa41
|
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
|
2016-11-10 21:30:21 -05:00 |
Hasan
|
04de436932
|
Made multiline assertRaises* conform to flake8's E128 rule.
|
2016-02-04 19:14:10 -05:00 |
Hasan
|
253adc2b8a
|
Refs #26022 -- Used context manager version of assertRaisesMessage in tests.
|
2016-01-29 13:03:39 -05:00 |
Hasan
|
3d0dcd7f5a
|
Refs #26022 -- Used context manager version of assertRaises in tests.
|
2016-01-29 12:32:18 -05:00 |
Tim Graham
|
0ed7d15563
|
Sorted imports with isort; refs #23860.
|
2015-02-06 08:16:28 -05:00 |
Artem Rizhov
|
ca61195827
|
Fixed #23555 -- Avoided suppressing IndexError in QuerySet.first() and .last()
|
2014-10-08 14:28:38 -04:00 |
Tim Graham
|
96d1d4e292
|
Removed unused local variables in tests.
|
2013-10-19 08:31:38 -04:00 |
Claude Paroz
|
5c1143910e
|
Removed most of absolute_import imports
Should be unneeded with Python 2.7 and up.
Added some unicode_literals along the way.
|
2013-07-29 20:28:13 +02:00 |
Selwin Ong
|
ea9a0857d4
|
Fixed #19326 -- Added first() and last() methods to QuerySet
|
2013-05-21 18:52:28 +03:00 |
Florian Apolloner
|
89f40e3624
|
Merged regressiontests and modeltests into the test root.
|
2013-02-26 14:36:57 +01:00 |