summaryrefslogtreecommitdiff
path: root/tests/test_client
AgeCommit message (Collapse)Author
2016-12-12Refs #27184 -- Fixed unclosed file ResourceWarning in test_client test.Jon Dufresne
2016-12-01Fixed #27542 -- Made Client.force_login() skip auth backends without get_user().Anton Samarchyan
2016-11-14Fixed E305 flake8 warnings.Ramin Farajpour Cami
2016-11-14Decorated a few functions.Tim Graham
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-11-09Tested the test client uploading of NamedTemporaryFile.Tom Scrace
2016-11-09Fixed #27184 -- Allowed uploading TemporaryFile with the test client.Tom Scrace
Thanks Federico Capoano for finishing the patch.
2016-08-06Fixed #27027 -- Restored Client.force_login() defaulting to the first auth ↵Ben Demboski
backend.
2016-08-04Fixed #27020 -- Used a context manager to close files.Ville Skyttä
2016-06-28Replaced use of TestCase.fail() with assertRaises().Tim Graham
Also removed try/except/fail antipattern that hides exceptions.
2016-06-24Refs #17209 -- Added LoginView and LogoutView class-based viewsClaude Paroz
Thanks Tim Graham for the review.
2016-06-20Refs #26666 -- Added ALLOWED_HOSTS validation when running tests.Tobias McNulty
Also used ALLOWED_HOSTS to check for external hosts in assertRedirects().
2016-06-16Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne
2016-06-02Fixed #26666 -- Added more useful error message to assertRedirectsTobias McNulty
2016-05-17Fixed #26601 -- Improved middleware per DEP 0005.Florian Apolloner
Thanks Tim Graham for polishing the patch, updating the tests, and writing documentation. Thanks Carl Meyer for shepherding the DEP.
2016-04-29Refs #26428 -- Added support for relative path redirects to the test client.Tim Graham
Thanks iktyrrell for the patch.
2016-04-25Fixed #26052 -- Moved conditional_content_removal() processing to the test ↵Tim Graham
client.
2016-04-04Fixed #25699 -- Allowed using the test client if 'django.contrib.sessions' ↵Sergey Kolosov
isn't in INSTALLED_APPS.
2016-04-02Fixed #26428 -- Added support for relative path redirects in assertRedirects().Tim Graham
Thanks Trac alias master for the report and review.
2016-03-23Fixed #24987 -- Allowed inactive users to login with the test client.Alexander Gaevsky
2016-03-23Fixed #25232 -- Made ModelBackend/RemoteUserBackend reject inactive users.Alexander Gaevsky
2016-02-06Fixed #26175 -- Removed SHA1 password hashes in tests.Tim Graham
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2016-01-25Fixed #26125 -- Fixed E731 flake warnings.userimack
2016-01-07Fixed #24855 -- Allowed using contrib.auth.login() without credentials.Paulo Poiati
Added an optional `backend` argument to login().
2015-12-31Fixed #26013 -- Moved django.core.urlresolvers to django.urls.Marten Kenbeek
Thanks to Tim Graham for the review.
2015-12-23Refs #25969 -- Replaced usage of render_to_response() with render() in tests.Tim Graham
2015-11-21Fixed #25780 -- Removed redundant status code assertions from testsAlex Morozov
2015-09-19Fixed #25424 -- Use force_str for test client URLs.Travis Jensen
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().
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-08-11Fixed #25163 -- Fixed exception handling in nested test client requests.pscottdevos
2015-07-01Fixed #20916 -- Added Client.force_login() to bypass authentication.Jon Dufresne
2015-05-20Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette
2015-03-18Fixed #23960 -- Removed http.fix_location_headerClaude Paroz
Thanks Carl Meyer for the report and Tim Graham for the review.
2015-03-05Converted test fixtures to setUpTestData methodsJosh Smeaton
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-03Fixed #24149 -- Normalized tuple settings to lists.darkryder
2015-01-18Changed RedirectView.permanent to False per deprecation timeline; refs #21587.Tim Graham
2014-11-28Corrected deprecation warnings for RedirectView; refs #21587.Berker Peksag
2014-11-25Fixed #21587 -- Added a warning for changing default of RedirectView.permanent.Berker Peksag
2014-10-28Fixed #23606 -- Implemented Client and RequestFactory trace() methods.Rigel Di Scala
Thanks KevinEtienne for the suggestion.
2014-09-24Removed numbering from the models.py header of some test packages.Loic Bistuer
This is a reliqua from the early days of the modeltests/regressiontests era.
2014-08-12Fixed #23276 -- Deprecated passing views as strings to url().Tim Graham
2014-06-13Fixed #16087 -- Added ResolverMatch instance to test client response.Greg Chapple
Thanks mrmachine for the suggestion.
2014-05-28Fixed several typos in DjangoAlex Gaynor
2014-05-15Harmonized some PEP 0263 coding preamblesClaude Paroz
2014-04-06Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi
2014-04-03Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham
Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
2014-01-14Fixed #21774 -- Isolate all test urls from eachother.Marc Tamlyn
This (nearly) completes the work to isolate all the test modules from each other. This is now more important as importing models from another module will case PendingDeprecationWarnings if those modules are not in INSTALLED_APPS. The only remaining obvious dependencies are: - d.c.auth depends on d.c.admin (because of the is_admin flag to some views), but this is not so important and d.c.admin is in always_installed_apps - test_client_regress depends on test_client. Eventually these should become a single module, as the split serves no useful purpose.
2014-01-09Fixed #12571 -- Attached originating WSGIRequest to test client responses.Unai Zalakain
Originating WSGIRequests are now attached to the ``wsgi_request`` attribute of the ``HttpResponse`` returned by the testing client. Thanks rvdrijst for the suggestion.