summaryrefslogtreecommitdiff
path: root/django/test
AgeCommit message (Collapse)Author
2019-02-14[2.2.x] Fixed #30171 -- Fixed DatabaseError in servers tests.Jon Dufresne
Made DatabaseWrapper thread sharing logic reentrant. Used a reference counting like scheme to allow nested uses. The error appeared after 8c775391b78b2a4a2b57c5e89ed4888f36aada4b. Backport of 76990cbbda5d93fda560c8a5ab019860f7efaab7 from master.
2019-01-21[2.2.x] Fixed #30121 -- Fixed assertURLEqual() crash with reverse_lazy() URLs.Jon Dufresne
Regression in 24959e48d949a20be969f649ece3576dbc7ce422. Backport of d15c61cabbe1c15068ffeb58c64035057f0c7d5c from master.
2019-01-14Removed unnecessary string formatting of strings.Jon Dufresne
2019-01-14Refs #28478 -- Prevented database feature based skipping on tests ↵Simon Charette
disallowing queries. Database features may require a connection to be established to determine whether or not they are enabled.
2019-01-14Refs #28478 -- Prevented connection attempts against disallowed databases in ↵Simon Charette
tests. Mocking connect as well as cursor methods makes sure an appropriate error message is surfaced when running a subset of test attempting to access a a disallowed database.
2019-01-10Fixed #28478 -- Make DiscoverRunner skip creating unused test databases.Simon Charette
SimpleTestCase.databases makes it possible to determine the set of databases required to run the discovered tests.
2019-01-10Refs #28478 -- Deprecated TestCase's allow_database_queries and multi_db in ↵Simon Charette
favor of databases.
2018-12-27Fixed #30024 -- Made urlencode() and Client raise TypeError when None is ↵Jon Dufresne
passed as data.
2018-12-05Reverted "Fixed #25251 -- Made data migrations available in ↵Tim Graham
TransactionTestCase when using --keepdb." This reverts commits b3b1d3d45fc066367f4fcacf0b06f72fcd00a9c6 and 9fa0d3786febf36c87ef059a39115aa1ce3326e8 due to reverse build failures for which a solution isn't forthcoming.
2018-11-29Refs #25251 -- Filtered out skipped tests when processing the test suite to ↵romgar
set _next_serialized_rollback.
2018-11-25Fixed typo in patch_logger() docstring.takaaki shimbo
2018-11-06Fixed #25251 -- Made data migrations available in TransactionTestCase when ↵romgar
using --keepdb. Data loaded in migrations were restored at the beginning of each TransactionTestCase and all the tables are truncated at the end of these test cases. If there was a TransactionTestCase at the end of the test suite, the migrated data weren't restored in the database (especially unexpected when using --keepdb). Now data is restored at the end of each TransactionTestCase.
2018-11-03Refs #29883 -- Removed runtests.py's dependency on selenium.Tim Graham
Regression in d207ac1568bb4dee305f6692ed7ddee8a1ff8b99.
2018-11-03Fixed #29883 -- Added selenium hub support to runtests.py.Tom Forbes
2018-10-30Fixed #29866 -- Made DiscoverRunner do tests tear down if running checks or ↵Jayden Kneller
tests raises an exception.
2018-10-09Capitalized "Python" in docs and comments.Jon Dufresne
2018-09-28Refs #28909 -- Simplifed code using unpacking generalizations.Sergey Fedoseev
2018-09-26Refs #29784 -- Switched to https:// links where available.Jon Dufresne
2018-08-25Fixed #29687 -- Allowed the test client to serialize list/tuple as JSON.Dan Palmer
2018-08-21Fixed #29658 -- Registered model lookups in tests with a context manager.Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)
2018-08-17Fixed #29024 -- Made TestContextDecorator call disable() if setUp() raises ↵Kamil
an exception.
2018-08-15Fixed #29662 -- Allowed test client to accept structured suffix JSON content ↵Marnanel Thurman
types.
2018-07-30Fixed #29467 -- Made override_settings handle errors in setting_changed ↵Sławek Ehlert
signal receivers.
2018-07-21Fixed #29576 -- Corrected the test client's HTTP_COOKIE header.Thng Kai Yuan
2018-07-18Removed duplicate words in various comments.Mariusz Felisiak
2018-07-09Fixed #29553 -- Made test client set Content-Length header to a string ↵Tim Graham
rather than integer.
2018-07-02Removed parser.add_arguments() arguments that match the defaults.Claude Paroz
2018-06-27Fixed #29520 -- Fixed test client crash when posting bytes.Tim Graham
Regression in b8a41a2872624a6d9e61308932dd81d001e31eb9.
2018-06-20Fixed #27398 -- Added an assertion to compare URLs, ignoring the order of ↵Jan Pieter Waagmeester
their query strings.
2018-06-12Restored django.test.utils.patch_logger() for backwards compatibility.Jon Dufresne
Added back after 607970f31cc07c317f2ebb684c8f3ccc36a95b3e.
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.Дилян Палаузов