Claude Paroz
|
29592eef19
|
Decoupled test client encoding tests from JSON handling
Using JSON as non-UTF-8 content is controversial, and the RFC 7159
discourages it.
Thanks Tim Graham for the review.
|
2017-03-09 22:15:10 +01:00 |
Claude Paroz
|
145f6c3ed6
|
Refs #27622 -- Fixed a regression in JSON content-type detection
A JSON Content-Type can contain further content, like charset for example.
|
2017-03-07 16:44:15 +01:00 |
Claude Paroz
|
324c4b6371
|
Renamed a test variable to prevent possible conflict with imports
|
2017-03-07 16:31:00 +01:00 |
Tim Graham
|
500532c95d
|
Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode().
|
2017-02-09 09:03:47 -05:00 |
Claude Paroz
|
c651331b34
|
Converted usage of ugettext* functions to their gettext* aliases
Thanks Tim Graham for the review.
|
2017-02-07 09:04:04 +01:00 |
Tim Graham
|
29f607927f
|
Fixed spelling of "nonexistent".
|
2017-02-03 08:01:45 -05:00 |
Vytis Banaitis
|
d1bab24e01
|
Refs #23919, #27778 -- Removed obsolete mentions of unicode.
|
2017-01-26 08:19:27 -05:00 |
chillaranand
|
d6eaf7c018
|
Refs #23919 -- Replaced super(ClassName, self) with super().
|
2017-01-25 12:23:46 -05:00 |
Claude Paroz
|
289fc1bfa5
|
Refs #23919 -- Removed str_prefix usage
|
2017-01-20 15:43:28 +01:00 |
Tim Graham
|
4e729feaa6
|
Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.
These functions do nothing on Python 3.
|
2017-01-20 08:01:02 -05:00 |
Simon Charette
|
cecc079168
|
Refs #23919 -- Stopped inheriting from object to define new style classes.
|
2017-01-19 08:39:46 +01:00 |
Claude Paroz
|
2b281cc35e
|
Refs #23919 -- Removed most of remaining six usage
Thanks Tim Graham for the review.
|
2017-01-18 21:33:28 +01:00 |
Claude Paroz
|
d7b9aaa366
|
Refs #23919 -- Removed encoding preambles and future imports
|
2017-01-18 09:55:19 +01:00 |
Tim Graham
|
0f454f5d4d
|
Refs #23960 -- Removed the host parameter for SimpleTestCase.assertRedirects().
Per deprecation timeline.
|
2017-01-17 14:09:28 -05:00 |
Tim Graham
|
8516f7c49b
|
Fixed #27698 -- Added django.test.utils.ContextList.get()
|
2017-01-06 19:23:42 -05:00 |
Anton Samarchyan
|
0b5d4c49d6
|
Fixed #27622 -- Allowed test client to accept vendor tree JSON content types.
|
2016-12-29 08:32:15 -05:00 |
Adam Chainz
|
19e2114634
|
Fixed #27516 -- Made test client's response.json() cache the parsed JSON.
|
2016-11-21 08:14:03 -05:00 |
Ramin Farajpour Cami
|
0a63ef3f61
|
Fixed #27463 -- Fixed E741 flake8 warnings.
|
2016-11-14 17:40:28 -05:00 |
Tim Graham
|
6072de727f
|
Decorated a few functions.
|
2016-11-14 12:20:44 -05:00 |
za
|
321e94fa41
|
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
|
2016-11-10 21:30:21 -05:00 |
Aleksej Manaev
|
4b9330ccc0
|
Fixed #25187 -- Made request available in authentication backends.
|
2016-09-12 20:11:53 -04:00 |
Chris Jerdonek
|
7bc5274f6f
|
Fixed #27012 -- Removed unnecessary setup_test_environment() in a test.
|
2016-08-04 09:35:44 -04:00 |
Tim Graham
|
c9ae09addf
|
Replaced use of TestCase.fail() with assertRaises().
Also removed try/except/fail antipattern that hides exceptions.
|
2016-06-28 11:21:26 -04:00 |
Tobias McNulty
|
17e661641d
|
Refs #26666 -- Added ALLOWED_HOSTS validation when running tests.
Also used ALLOWED_HOSTS to check for external hosts in assertRedirects().
|
2016-06-20 11:07:46 -04:00 |
Jon Dufresne
|
4f336f6652
|
Fixed #26747 -- Used more specific assertions in the Django test suite.
|
2016-06-16 14:19:18 -04:00 |
Tim Graham
|
92053acbb9
|
Fixed E128 flake8 warnings in tests/.
|
2016-04-08 10:12:33 -04:00 |
Tim Graham
|
015fad9060
|
Fixed #26175 -- Removed SHA1 password hashes in tests.
|
2016-02-06 08:47:21 -05:00 |
Marten Kenbeek
|
16411b8400
|
Fixed #26013 -- Moved django.core.urlresolvers to django.urls.
Thanks to Tim Graham for the review.
|
2015-12-31 14:21:29 -05:00 |
Tim Graham
|
edf3b88f1a
|
Refs #25969 -- Replaced usage of render_to_response() with render() in tests.
|
2015-12-23 09:06:13 -05:00 |
Attila Tovt
|
0a2d3b7387
|
Fixed #25682 -- Removed bare except clauses.
|
2015-11-17 14:39:15 -05:00 |
Ville Skyttä
|
3ee18400ae
|
Fixed #25668 -- Misc spelling errors
|
2015-11-03 11:58:13 +02:00 |
Tim Graham
|
9023696613
|
Removed dictionary and context_instance parameters for render functions.
Per deprecation timeline.
|
2015-09-23 19:31:11 -04:00 |
Dražen Odobašić
|
b1e33ceced
|
Fixed #23395 -- Limited line lengths to 119 characters.
|
2015-09-12 11:40:50 -04:00 |
Jay Cox
|
434d309ef6
|
Fixed #24720 -- Avoided resolving URLs that don't end in a slash twice in CommonMiddleware.
This speeds up affected requests by about 5%.
|
2015-07-31 12:04:06 -04:00 |
Tim Graham
|
aaacaeb096
|
Renamed RemovedInDjangoXYWarnings for new roadmap.
Forwardport of ae1d663b79
from stable/1.8.x plus more.
|
2015-06-24 16:08:20 -04:00 |
Andy McKay
|
4525a0c466
|
Fixed #24773 -- Added a json() method on test client responses.
|
2015-05-25 10:42:30 -04:00 |
Simon Charette
|
be67400b47
|
Refs #24652 -- Used SimpleTestCase where appropriate.
|
2015-05-20 13:46:13 -04:00 |
Claude Paroz
|
a0c2eb46dd
|
Fixed #23960 -- Removed http.fix_location_header
Thanks Carl Meyer for the report and Tim Graham for the review.
|
2015-03-18 18:22:50 +01:00 |
Josh Smeaton
|
39a7eed1bb
|
Converted test fixtures to setUpTestData methods
|
2015-03-05 10:10:32 +11:00 |
Tim Graham
|
0ed7d15563
|
Sorted imports with isort; refs #23860.
|
2015-02-06 08:16:28 -05:00 |
darkryder
|
9ec8aa5e5d
|
Fixed #24149 -- Normalized tuple settings to lists.
|
2015-02-03 14:59:45 -05:00 |
Tim Graham
|
2fa2068406
|
Removed an unused import and a flake8 exclude that caused it to be missed.
|
2015-01-18 20:02:15 -05:00 |
Tim Graham
|
6e13c0490d
|
Changed RedirectView.permanent to False per deprecation timeline; refs #21587.
|
2015-01-18 17:43:06 -05:00 |
Tim Graham
|
75f107b884
|
Removed request.REQUEST per deprecation timeline; refs #18659.
|
2015-01-17 08:05:18 -05:00 |
Aymeric Augustin
|
79deb6a071
|
Accounted for multiple template engines in template responses.
|
2015-01-12 21:01:34 +01:00 |
Claude Paroz
|
51890ce889
|
Applied ignore_warnings to Django tests
|
2014-12-30 18:16:25 +01:00 |
Aymeric Augustin
|
9eb4f28e89
|
Deprecated TEMPLATE_CONTEXT_PROCESSORS.
|
2014-12-28 17:02:31 +01:00 |
Aymeric Augustin
|
d3205e3e2e
|
Deprecated TEMPLATE_DIRS.
|
2014-12-28 17:02:30 +01:00 |
Aymeric Augustin
|
fdbfc98003
|
Deprecated some arguments of django.shortcuts.render(_to_response).
dictionary and context_instance and superseded by context.
Refactored tests that relied context_instance with more modern idioms.
|
2014-12-28 17:02:29 +01:00 |
Berker Peksag
|
47789410db
|
Corrected deprecation warnings for RedirectView; refs #21587.
|
2014-11-28 17:59:55 -05:00 |