| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
urlparse() fails with an AttributeError ("'__proxy__' object has no
attribute 'decode'") if reverse_lazy is used to look up the URL
(this is exactly the same problem that caused ticket #18776). The
solution is to use force_str() on the path before handing it to
urlparse().
|
| |
|
|
|
|
| |
client requests.
|
|
|
|
| |
authentication.
|
|
|
|
| |
responses.
|
| |
|
| |
|
|
|
|
| |
generators and dict comprehension
|
|
|
|
| |
the test client
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
tests.
When the test client detects a redirect to a URL seen in the
currently followed chain it will now raise a RedirectCycleError
instead of just returning the first repeated response.
It will also complain when a single chain of redirects is longer
than 20, as this often means a redirect loop with varying URLs,
and even if it's not actually one, such long chains are likely
to be treated as loops by browsers.
Thanks Preston Timmons, Berker Peksag, and Tim Graham for reviews.
|
|
|
|
|
|
| |
trace() methods.
Thanks KevinEtienne for the suggestion.
|
|
|
|
|
|
|
| |
string
This fixes a regression introduced by 2a31d00933.
Thanks tony-zhu for the report.
|
|
|
|
|
| |
Thanks Loic Bistuer for helping in shaping the patch and Claude Paroz
for the review.
|
|
|
|
| |
request_started signal.
|
|
|
|
| |
custom auth backend.
|
|
|
|
|
|
| |
client response.
Thanks mrmachine for the suggestion.
|
|
|
|
|
| |
The test client will now create a session when it is first accessed
if no session already exists.
|
|
|
|
|
|
|
|
| |
client login()"
This reverts commit 4fdd51b73240bf9c8d9472fcc45df699f0714755.
See the ticket for concerns with this implementation; it will be revisited.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
contrib.auth.
This is to prevent an import of django.test causing an import (and thus
an implicit checks regisration) for an app that may not be in
`INSTALLED_APPS`.
Better fixes may be possible when #20915 and/or #21829 are addressed.
Thanks to @carljm for the report.
|
|
|
|
|
|
|
| |
in test client
Thanks Denver Coneybeare for the report and initial patch, and
Atala for another patch.
|
|
|
|
|
|
|
|
|
| |
client responses.
Originating WSGIRequests are now attached to the ``wsgi_request`` attribute of
the ``HttpResponse`` returned by the testing client.
Thanks rvdrijst for the suggestion.
|
| |
|
|
|
|
|
|
| |
Also renamed app_cache to apps and "app cache" to "app registry".
Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
|
|
|
|
| |
Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
|
|
|
|
|
| |
Removed some exception masking in the comments app that was harmful and
couldn't be preserved easily.
|
|
|
|
|
|
| |
cookie-based sessions
Thanks Gunnar Scherf for the report and the suggested patch.
|
|
|
|
|
|
|
|
|
|
| |
login()
Requests made with django.test.Client.login() and logout() respect
defaults defined in django.test.Client instantiation and are processed
through middleware.
Thanks to Loic for the reviews.
|
| |
|
|
|
|
|
|
|
| |
All request methods of ``django.test.client.Client`` receive a ``secure``
argument that defaults to ``False`` indicating whether or not to make the
request through https.
Thanks Aymeric Augustin for the review.
|
|
|
|
| |
We have always been at war with trailing backslashes.
|
| |
|
|
|
|
|
|
|
| |
Fixed
comment_tests.tests.test_comment_view.CommentViewTests.testCommentPostRedirectWithInvalidIntegerPK.
Refs #20530.
|
|
|
|
| |
unused imports and local variables
|
| |
|
|
|
|
| |
for performing requests.
|
|
|
|
|
|
|
| |
signals.template_rendered call a unique dispatch_uid
This prevents the test client context from being lost when the client
is used in a nested fashion.
|
|
|
|
| |
This was a shim for pre-Python 2.7 support.
|
|
|
|
| |
Thanks Waldemar Kornewald and mvschaik for work on the patch.
|
|\
| |
| |
| |
| | |
tomchristie/remove-incorrect-content-type-test-client
Remove incorrect CONTENT_TYPE header from GET and HEAD requests
|
| |
| |
| |
| | |
requests
|
|/
|
|
|
|
|
| |
user_logged_out signal.
Thanks awsum for the suggestion and Pavel Ponomarev and
Florian Hahn for the patch.
|
|
|
|
| |
Thanks Anssi Kääriäinen and Karen Tracey for their inputs.
|
|
|
|
| |
Thanks coolRR for the report.
|
|
|
|
| |
the dummy test client. Thanks to pfarmer for the suggestion and initial patch.
|
|
|
|
| |
after fd1279a4.
|
|
|
|
| |
iterable's close().
|
|
|
|
| |
Thanks aliva for the report and claudep for the feedback.
|
|
|
|
|
| |
This regression was introduced by the unicode_literals patch. The WSGI
spec mandates that environ contains native strings.
|
|
|
|
|
|
| |
len and string input
Thanks Ondrej Slinták for the suggestion.
|