summaryrefslogtreecommitdiff
path: root/django/test
AgeCommit message (Collapse)Author
2018-07-18[2.1.x] Removed duplicate words in various comments.Mariusz Felisiak
Backport of a73cf8110e6cccbf46bf77fd4ddce2df99df53ca from master
2018-06-27[2.1.x] Fixed #29520 -- Fixed test client crash when posting bytes.Tim Graham
Regression in b8a41a2872624a6d9e61308932dd81d001e31eb9. Backport of 9294110a57ce0a6d14506969c950090045c622c8 from master
2018-06-12[2.1.x] Restored django.test.utils.patch_logger() for backwards compatibility.Jon Dufresne
Added back after 607970f31cc07c317f2ebb684c8f3ccc36a95b3e. Backport of 8dcd43ce06b06cd67dab134099135d976ae9884a from master
2018-05-09Fixed #29363 -- Added SimpleTestCase.assertWarnsMessage().Morgan Aubert
2018-05-07Replaced django.test.utils.patch_logger() with assertLogs().Claude Paroz
Thanks Tim Graham for the review.
2018-03-31Fixed #29275 -- Made assertFormError() output "(actual errors: none)" ↵Chris Lamb
instead of "(actual errors: )".
2018-03-16Fixed hanging indentation in various code.Mariusz Felisiak
2018-02-13Fixed #29106 -- Made DiscoverRunner display selected test tags.Sanyam Khurana
2018-02-12Refs #27795 -- Removed force_bytes() in django.test.client where possible.Tim Graham
2018-02-10Refs #27795 -- Removed force_text() usage in django/test/testcases.py.Jon Dufresne
2018-02-06Fixed #29082 -- Allowed the test client to encode JSON request data.Nick Sarbicki
2018-02-06Fixed #27999 -- Added test client support for HTTP 307 and 308 redirects.Tom
2018-01-21Fixed #29038 -- Removed closing slash from HTML void tags.Jon Dufresne
2018-01-08Fixed #28869 -- Made tagged test classes and methods inherit tags from parents.Will Ayd
2018-01-03Fixed #28982 -- Simplified code with and/or.Дилян Палаузов
2018-01-03Fixed #28984 -- Made assorted code simplifications.Tim Graham
2018-01-03Fixed #28985 -- Removed unneeded None checks before hasattr().Дилян Палаузов
2017-12-26Fixed #28930 -- Simplified code with any() and all().Дилян Палаузов
2017-12-21Refs #28909 -- Simplifed code using unpacking generalizations.Nick Pope
2017-12-11Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.Nick Pope
2017-12-07Refs #23919 -- Replaced super() calls for old-style classes.Nick Pope
2017-12-06Fixed #28893 -- Removed unnecessary dict.items() calls.Tim Graham
2017-12-04Fixed #28860 -- Removed unnecessary len() calls.Дилян Палаузов
2017-11-28Fixed #28837 -- Fixed test client crash if an exception with more than one ↵Nicolas Delaby
arg is raised. Also removed usage of the problematic pattern elsewhere. Regression in 6e55e1d88a5c4453e25f0caf7ffb68973de5c0ba.
2017-11-28Fixed #28853 -- Updated connection.cursor() uses to use a context manager.Jon Dufresne
2017-10-13Refs #28575 -- Allowed pickling Model.DoesNotExist and ↵Rachel Tobin
MultipleObjectsReturned classes.
2017-09-25Refs #27857 -- Replaced json.loads() ValueError exception catching with ↵Tim Graham
JSONDecodeError.
2017-09-25Fixed #27857 -- Dropped support for Python 3.4.Tim Graham
2017-09-22Refs #26840 -- Removed django.test.runner.setup_databases() per deprecation ↵Tim Graham
timeline.
2017-09-11Fixed #28578 -- Renamed DatabaseCreation number arguments to suffix.Jon Dufresne
2017-09-09Fixed some comments referring to a nonexistent TestClient class.Luoxzhg
2017-09-07Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
2017-09-06Refs #23919 -- Replaced usage of django.utils.functional.curry() with ↵Sergey Fedoseev
functools.partial()/partialmethod().
2017-08-24Used sets for CheckRegistry.registered_checks and deployment_checks.Sergey Fedoseev
2017-08-21Removed need for hasattr(check, 'tags') in CheckRegistry.Sergey Fedoseev
It was needed to pass tests because registered checks weren't properly mocked.
2017-07-05Fixed #28360 -- Fixed test runner crash with --debug-sql on fail/error in ↵Sergey Fedoseev
subTest.
2017-06-28Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().Mads Jensen
2017-06-18Refs #27539 -- Fixed typo in TransactionTestCase._pre_setup() comment.François Freitag
2017-06-16Fixed #27539 -- Made TransactionTestCase._pre_setup() clear the queries_log ↵reficul31
so it's less likely to overflow. TransactionTestCase.assertNumQueries() fails in an overflow situation.
2017-06-16Refs #27787 -- Corrected or removed invalid call_command() options.Chandrakant Kumar
2017-05-30Fixed #28212 -- Allowed customizing the port that LiveServerTestCase uses.Robert Rollins
Forwardport of 877d7b71ae952b3bc946e5187d6c23039a71614d from stable/1.11.x
2017-05-20Fixed #28180 -- Numbered queries in assertNumQueries failure outputClaude Paroz
Thanks Tim Graham for the test part.
2017-05-18Fixed #28203 -- Ignored connection configuration queries in assertNumQueries().François Freitag
2017-05-09Fixed #28081 -- Stopped setting Content-Length=0 in ↵João Silva
conditional_content_removal() per RFC 7230.
2017-04-27Removed obsolete django.test.utils.strip_quotes().Tim Graham
Django's test runners no longer discover doctests.
2017-04-27Replaced set |= operator with update() to avoid temporary set.Jon Dufresne
2017-04-01Removed implicit default store_true/false argparse args.Jon Dufresne
argparse automatically sets the default value for store_true/false arguments to its opposite.
2017-03-07Refs #27622 -- Fixed a regression in JSON content-type detectionClaude Paroz
A JSON Content-Type can contain further content, like charset for example.
2017-03-04Refs #27656 -- Updated remaining docstring verbs according to PEP 257.Anton Samarchyan
2017-02-24Fixed #27873 -- Fixed crash in setup_test_environment() if ALLOWED_HOSTS is ↵Chris Lamb
a tuple. Regression in 17e661641ddaf8266e7430d83cfb2039abc55df7