Chris Lamb
|
84ad721bd9
|
Fixed #29275 -- Made assertFormError() output "(actual errors: none)" instead of "(actual errors: )".
|
2018-03-31 18:35:45 -04:00 |
Mariusz Felisiak
|
362813d628
|
Fixed hanging indentation in various code.
|
2018-03-16 10:54:34 +01:00 |
Sanyam Khurana
|
5a669ae2f4
|
Fixed #29106 -- Made DiscoverRunner display selected test tags.
|
2018-02-13 12:56:31 -05:00 |
Tim Graham
|
b8a41a2872
|
Refs #27795 -- Removed force_bytes() in django.test.client where possible.
|
2018-02-12 11:03:11 -05:00 |
Jon Dufresne
|
919d59811f
|
Refs #27795 -- Removed force_text() usage in django/test/testcases.py.
|
2018-02-10 11:44:39 -05:00 |
Nick Sarbicki
|
47268242b0
|
Fixed #29082 -- Allowed the test client to encode JSON request data.
|
2018-02-06 18:29:04 -05:00 |
Tom
|
272f685794
|
Fixed #27999 -- Added test client support for HTTP 307 and 308 redirects.
|
2018-02-06 09:03:43 -05:00 |
Jon Dufresne
|
ff05de760c
|
Fixed #29038 -- Removed closing slash from HTML void tags.
|
2018-01-21 02:09:10 -05:00 |
Will Ayd
|
09530e61a0
|
Fixed #28869 -- Made tagged test classes and methods inherit tags from parents.
|
2018-01-08 20:57:33 -05:00 |
Дилян Палаузов
|
d7b2aa24f7
|
Fixed #28982 -- Simplified code with and/or.
|
2018-01-03 20:12:23 -05:00 |
Tim Graham
|
acc8dd4142
|
Fixed #28984 -- Made assorted code simplifications.
|
2018-01-03 13:24:02 -05:00 |
Дилян Палаузов
|
d79cf1e9e2
|
Fixed #28985 -- Removed unneeded None checks before hasattr().
|
2018-01-03 11:37:06 -05:00 |
Дилян Палаузов
|
4c599ece57
|
Fixed #28930 -- Simplified code with any() and all().
|
2017-12-26 17:11:15 -05:00 |
Nick Pope
|
f3a98224e6
|
Refs #28909 -- Simplifed code using unpacking generalizations.
|
2017-12-21 21:05:23 -05:00 |
Nick Pope
|
d13a9e44de
|
Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.
|
2017-12-11 07:08:45 -05:00 |
Nick Pope
|
c68f66e014
|
Refs #23919 -- Replaced super() calls for old-style classes.
|
2017-12-07 09:10:32 -05:00 |
Tim Graham
|
a862af3839
|
Fixed #28893 -- Removed unnecessary dict.items() calls.
|
2017-12-06 17:17:59 -05:00 |
Дилян Палаузов
|
d2afa5eb23
|
Fixed #28860 -- Removed unnecessary len() calls.
|
2017-12-04 10:35:23 -05:00 |
Nicolas Delaby
|
746caf3ef8
|
Fixed #28837 -- Fixed test client crash if an exception with more than one arg is raised.
Also removed usage of the problematic pattern elsewhere.
Regression in 6e55e1d88a .
|
2017-11-28 18:55:23 -05:00 |
Jon Dufresne
|
7a6fbf36b1
|
Fixed #28853 -- Updated connection.cursor() uses to use a context manager.
|
2017-11-28 11:28:09 -05:00 |
Rachel Tobin
|
6c92f711ea
|
Refs #28575 -- Allowed pickling Model.DoesNotExist and MultipleObjectsReturned classes.
|
2017-10-13 09:16:09 -04:00 |
Tim Graham
|
98706bb35e
|
Refs #27857 -- Replaced json.loads() ValueError exception catching with JSONDecodeError.
|
2017-09-25 17:11:06 -04:00 |
Tim Graham
|
cfff2af02b
|
Fixed #27857 -- Dropped support for Python 3.4.
|
2017-09-25 17:11:03 -04:00 |
Tim Graham
|
9463a7a8cd
|
Refs #26840 -- Removed django.test.runner.setup_databases() per deprecation timeline.
|
2017-09-22 12:51:17 -04:00 |
Jon Dufresne
|
99e65d6488
|
Fixed #28578 -- Renamed DatabaseCreation number arguments to suffix.
|
2017-09-11 11:32:40 -04:00 |
Luoxzhg
|
ffbee67f8e
|
Fixed some comments referring to a nonexistent TestClient class.
|
2017-09-09 11:21:15 -04:00 |
Tim Graham
|
6e4c6281db
|
Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."
This reverts commit 550cb3a365
because try/except performs better.
|
2017-09-07 08:16:21 -04:00 |
Sergey Fedoseev
|
5b1c389603
|
Refs #23919 -- Replaced usage of django.utils.functional.curry() with functools.partial()/partialmethod().
|
2017-09-06 13:11:18 -04:00 |
Sergey Fedoseev
|
481ba33cd2
|
Used sets for CheckRegistry.registered_checks and deployment_checks.
|
2017-08-24 10:37:50 -04:00 |
Sergey Fedoseev
|
30eb92fc11
|
Removed need for hasattr(check, 'tags') in CheckRegistry.
It was needed to pass tests because registered checks weren't properly mocked.
|
2017-08-21 15:34:20 -04:00 |
Sergey Fedoseev
|
6de2930078
|
Fixed #28360 -- Fixed test runner crash with --debug-sql on fail/error in subTest.
|
2017-07-05 16:56:24 -04:00 |
Mads Jensen
|
550cb3a365
|
Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().
|
2017-06-28 14:07:55 -04:00 |
François Freitag
|
e36598f963
|
Refs #27539 -- Fixed typo in TransactionTestCase._pre_setup() comment.
|
2017-06-18 21:24:20 -04:00 |
reficul31
|
92e286498a
|
Fixed #27539 -- Made TransactionTestCase._pre_setup() clear the queries_log so it's less likely to overflow.
TransactionTestCase.assertNumQueries() fails in an overflow situation.
|
2017-06-16 21:06:13 -04:00 |
Chandrakant Kumar
|
f6800a081a
|
Refs #27787 -- Corrected or removed invalid call_command() options.
|
2017-06-16 11:06:01 -04:00 |
Robert Rollins
|
b6d4b6e544
|
Fixed #28212 -- Allowed customizing the port that LiveServerTestCase uses.
Forwardport of 877d7b71ae from stable/1.11.x
|
2017-05-30 18:49:10 -04:00 |
Claude Paroz
|
43c65e0eb0
|
Fixed #28180 -- Numbered queries in assertNumQueries failure output
Thanks Tim Graham for the test part.
|
2017-05-20 15:11:09 +02:00 |
François Freitag
|
98b3b14a64
|
Fixed #28203 -- Ignored connection configuration queries in assertNumQueries().
|
2017-05-18 11:48:03 -04:00 |
João Silva
|
3db84b5526
|
Fixed #28081 -- Stopped setting Content-Length=0 in conditional_content_removal() per RFC 7230.
|
2017-05-09 14:55:03 -04:00 |
Tim Graham
|
60dce33ab1
|
Removed obsolete django.test.utils.strip_quotes().
Django's test runners no longer discover doctests.
|
2017-04-27 20:32:12 -04:00 |
Jon Dufresne
|
7be94e0335
|
Replaced set |= operator with update() to avoid temporary set.
|
2017-04-27 08:16:19 -04:00 |
Jon Dufresne
|
7bbb5161ea
|
Removed implicit default store_true/false argparse args.
argparse automatically sets the default value for store_true/false
arguments to its opposite.
|
2017-04-01 20:03:56 -04:00 |
Claude Paroz
|
145f6c3ed6
|
Refs #27622 -- Fixed a regression in JSON content-type detection
A JSON Content-Type can contain further content, like charset for example.
|
2017-03-07 16:44:15 +01:00 |
Anton Samarchyan
|
86de930f41
|
Refs #27656 -- Updated remaining docstring verbs according to PEP 257.
|
2017-03-04 10:02:06 -05:00 |
Chris Lamb
|
339d526d55
|
Fixed #27873 -- Fixed crash in setup_test_environment() if ALLOWED_HOSTS is a tuple.
Regression in 17e661641d
|
2017-02-24 13:58:56 -05:00 |
Vytis Banaitis
|
3dcc351691
|
Refs #23919 -- Used yield from.
|
2017-02-23 20:06:01 -05:00 |
Tim Graham
|
3f5a35d6e2
|
Added TransactionTestCase.multi_db instead of using getattr().
|
2017-02-13 08:46:00 -05:00 |
Nadège Michel
|
bece837829
|
Fixed #20238 -- Added threading support to LiveServerTestCase.
|
2017-02-09 19:08:32 -05:00 |
Chronial
|
03281d8fe7
|
Fixed #26005 -- Fixed some percent decoding cases in uri_to_iri().
|
2017-02-09 09:22:00 -05:00 |
Tim Graham
|
500532c95d
|
Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode().
|
2017-02-09 09:03:47 -05:00 |