Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/test_client
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25424 -- Use force_str for test client URLs.Travis Jensen2015-09-191-0/+9
| | | | | | | | 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().
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-122-3/+9
|
* Fixed #25163 -- Fixed exception handling in nested test ↵pscottdevos2015-08-113-0/+20
| | | | client requests.
* Fixed #20916 -- Added Client.force_login() to bypass ↵Jon Dufresne2015-07-012-0/+106
| | | | authentication.
* Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette2015-05-201-4/+6
|
* Fixed #23960 -- Removed http.fix_location_headerClaude Paroz2015-03-181-27/+14
| | | | Thanks Carl Meyer for the report and Tim Graham for the review.
* Converted test fixtures to setUpTestData methodsJosh Smeaton2015-03-052-57/+24
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-063-6/+4
|
* Fixed #24149 -- Normalized tuple settings to lists.darkryder2015-02-031-2/+2
|
* Changed RedirectView.permanent to False per deprecation ↵Tim Graham2015-01-181-2/+2
| | | | timeline; refs #21587.
* Corrected deprecation warnings for RedirectView; refs ↵Berker Peksag2014-11-282-34/+19
| | | | #21587.
* Fixed #21587 -- Added a warning for changing default of ↵Berker Peksag2014-11-251-16/+31
| | | | RedirectView.permanent.
* Fixed #23606 -- Implemented Client and RequestFactory ↵Rigel Di Scala2014-10-283-4/+82
| | | | | | trace() methods. Thanks KevinEtienne for the suggestion.
* Removed numbering from the models.py header of some test ↵Loic Bistuer2014-09-241-1/+1
| | | | | | packages. This is a reliqua from the early days of the modeltests/regressiontests era.
* Fixed #23276 -- Deprecated passing views as strings to ↵Tim Graham2014-08-121-2/+3
| | | | url().
* Fixed #16087 -- Added ResolverMatch instance to test ↵Greg Chapple2014-06-132-1/+24
| | | | | | client response. Thanks mrmachine for the suggestion.
* Fixed several typos in DjangoAlex Gaynor2014-05-291-1/+1
|
* Harmonized some PEP 0263 coding preamblesClaude Paroz2014-05-151-1/+1
|
* Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi2014-04-061-5/+5
|
* Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham2014-04-031-31/+31
| | | | Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
* Fixed #21774 -- Isolate all test urls from eachother.Marc Tamlyn2014-01-143-74/+82
| | | | | | | | | | | | | 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.
* Fixed #12571 -- Attached originating WSGIRequest to test ↵Unai Zalakain2014-01-101-0/+14
| | | | | | | | | 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.
* Imported override_settings from its new location.Aymeric Augustin2013-12-231-1/+1
|
* Removed superfluous models.py files.Aymeric Augustin2013-12-171-0/+0
| | | | | | | Added comments in the three empty models.py files that are still needed. Adjusted the test runner to add applications corresponding to test labels to INSTALLED_APPS even when they don't have a models module.
* Fixed #21448 -- Fixed test client logout with ↵Claude Paroz2013-11-261-0/+4
| | | | | | cookie-based sessions Thanks Gunnar Scherf for the report and the suggested patch.
* Fixed all E261 warningscoagulant2013-11-031-1/+1
|
* Fixing E302 ErrorsJason Myers2013-11-032-1/+25
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed #21302 -- Fixed unused imports and import *.Tim Graham2013-11-021-2/+0
|
* Fixed #21341 -- Eased https requests with the test clientUnai Zalakain2013-11-022-0/+13
| | | | | | | 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.
* Fixed all the E203 violationsAlex Gaynor2013-10-271-2/+2
|
* Fix all violators of E231Alex Gaynor2013-10-262-8/+8
|
* Removed some direct settings manipulations in tests; ↵Bouke Haarsma2013-10-211-10/+4
| | | | refs #21230.
* Removed unused local variables in tests.Tim Graham2013-10-191-1/+1
|
* Whitespace cleanup.Tim Graham2013-10-101-39/+39
| | | | | | | * Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
* Fixed #20919 -- Extended assertRedirects to be able to ↵Juan Catalano2013-09-103-1/+9
| | | | | | avoid fetching redirect's response. Thanks mjtamlyn for the suggestion.
* Took advantage of django.utils.six.moves.urllib.*.Aymeric Augustin2013-09-051-4/+1
|
* Removed most of absolute_import importsClaude Paroz2013-07-292-3/+1
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Fixed #11603 - Added ↵Tim Graham2013-05-272-1/+46
| | | | | | django.test.SimpleTestCase.assertFormsetError Thank-you Martin Green for the patch.
* Move last remaining tests out of models.py files; prep ↵Preston Timmons2013-04-032-523/+502
| | | | for test discovery.
* Removed mentions of modeltests.Ramiro Morales2013-03-031-3/+3
|
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-266-0/+837