Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/test_client_regress
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25668 -- Misc spelling errorsVille Skyttä2015-11-031-2/+2
|
* Removed dictionary and context_instance parameters for ↵Tim Graham2015-09-242-7/+3
| | | | | | render functions. Per deprecation timeline.
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-9/+49
|
* Fixed #24720 -- Avoided resolving URLs that don't end in ↵Jay Cox2015-07-311-1/+1
| | | | | | a slash twice in CommonMiddleware. This speeds up affected requests by about 5%.
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-241-4/+4
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Fixed #24773 -- Added a json() method on test client ↵Andy McKay2015-05-253-1/+16
| | | | responses.
* Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette2015-05-201-18/+20
|
* Fixed #23960 -- Removed http.fix_location_headerClaude Paroz2015-03-181-14/+19
| | | | Thanks Carl Meyer for the report and Tim Graham for the review.
* Converted test fixtures to setUpTestData methodsJosh Smeaton2015-03-052-68/+31
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-064-12/+11
|
* Fixed #24149 -- Normalized tuple settings to lists.darkryder2015-02-031-6/+6
|
* Removed an unused import and a flake8 exclude that ↵Tim Graham2015-01-191-1/+1
| | | | caused it to be missed.
* Changed RedirectView.permanent to False per deprecation ↵Tim Graham2015-01-182-31/+31
| | | | timeline; refs #21587.
* Removed request.REQUEST per deprecation timeline; refs ↵Tim Graham2015-01-172-21/+0
| | | | #18659.
* Accounted for multiple template engines in template ↵Aymeric Augustin2015-01-121-3/+5
| | | | responses.
* Applied ignore_warnings to Django testsClaude Paroz2014-12-302-25/+23
|
* Deprecated TEMPLATE_CONTEXT_PROCESSORS.Aymeric Augustin2014-12-281-3/+9
|
* Deprecated TEMPLATE_DIRS.Aymeric Augustin2014-12-281-7/+5
|
* Deprecated some arguments of ↵Aymeric Augustin2014-12-281-8/+12
| | | | | | | | django.shortcuts.render(_to_response). dictionary and context_instance and superseded by context. Refactored tests that relied context_instance with more modern idioms.
* Corrected deprecation warnings for RedirectView; refs ↵Berker Peksag2014-11-281-12/+12
| | | | #21587.
* Fixed #23682 -- Enhanced circular redirects detection in ↵wrwrwr2014-11-253-3/+20
| | | | | | | | | | | | | | | 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.
* Simplified caching of template context processors.Aymeric Augustin2014-11-192-5/+5
|
* Refactored getting the list of template loaders.Aymeric Augustin2014-11-161-10/+3
| | | | | This provides the opportunity to move utility functions specific to the Django Template Language outside of django.template.loader.
* Fixed #23620 -- Used more specific assertions in the ↵Berker Peksag2014-11-031-2/+2
| | | | Django test suite.
* Fixed #21740 -- Allowed test client data to be an empty ↵Claude Paroz2014-10-211-0/+10
| | | | | | | string This fixes a regression introduced by 2a31d00933. Thanks tony-zhu for the report.
* Fixed flake8 warnings.Tim Graham2014-09-291-1/+1
|
* Replaced set([foo, ...]) by {foo, ...} literals. Refs PR ↵Thomas Chaumeny2014-09-281-2/+2
| | | | | | 3282. Thanks Collin Anderson for the review.
* Fixed #22771 -- Fixed test.Client.logout when using ↵Xavier Fernandez2014-06-132-0/+39
| | | | custom auth backend.
* Fixed #21357 -- Fixed test client session initialization.Preston Timmons2014-05-231-0/+8
| | | | | The test client will now create a session when it is first accessed if no session already exists.
* Revert "Fixed #15179 -- middlewares not applied for test ↵Tim Graham2014-04-291-44/+0
| | | | | | | | client login()" This reverts commit 4fdd51b73240bf9c8d9472fcc45df699f0714755. See the ticket for concerns with this implementation; it will be revisited.
* Fixed #22369 -- Added count parameter to assertTemplateUsedJacob R. Rothenbuhler2014-04-143-0/+42
|
* Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi2014-04-061-28/+28
|
* Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham2014-04-031-32/+32
| | | | 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-131/+166
| | | | | | | | | | | | | 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.
* Imported override_settings from its new location.Aymeric Augustin2013-12-231-2/+2
|
* Fixed #15179 -- middlewares not applied for test client ↵Unai Zalakain2013-11-191-0/+44
| | | | | | | | | | 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.
* Fixed #13725 -- take url scheme into account in ↵Unai Zalakain2013-11-071-0/+19
| | | | | | | | | assertRedirects Scheme is handled correctly when making comparisons between two URLs. If there isn't any scheme specified in the location where we are redirected to, the original request's scheme is used. If present, the scheme in ``expected_url`` is the one used to make the comparations to.
* Fixed all E261 warningscoagulant2013-11-031-3/+3
|
* Fixing E302 ErrorsJason Myers2013-11-033-6/+41
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fix all violators of E231Alex Gaynor2013-10-263-23/+23
|
* Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol2013-10-231-0/+2
|
* Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol2013-10-211-4/+4
|
* Removed unused local variables in tests.Tim Graham2013-10-192-3/+3
|
* Fixed #18659 -- Deprecated request.REQUEST and MergeDictBouke Haarsma2013-10-171-6/+14
| | | | Thanks Aymeric Augustin for the suggestion.
* 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 #18356 -- Gave the test client ↵Bojan Mihelac2013-08-093-1/+21
| | | | | | | 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.
* Removed most of absolute_import importsClaude Paroz2013-07-291-2/+0
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Fixed #18924 -- Made test.Client.logout send ↵Tim Graham2013-06-042-0/+85
| | | | | | | user_logged_out signal. Thanks awsum for the suggestion and Pavel Ponomarev and Florian Hahn for the patch.
* Fixed #20404 -- Added a keys() method to ContextList.Chris Wilson2013-05-311-2/+16
| | | | | | | | | | | It's useful to be able to list all the (flattened) keys of a ContextList, to help you figure out why the variable that's supposed to be there is not. No .values() or .items() added as the definition for those aren't clear. The patch is Chris Wilson's patch from pull request 1065 with some modifications by committer.
* Fixed #11603 - Added ↵Tim Graham2013-05-271-0/+191
| | | | | | django.test.SimpleTestCase.assertFormsetError Thank-you Martin Green for the patch.