remove BaseRequest and BaseResponse
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Lord · committed by David Lord · parent fdba0d2 · Browse files · 5 files·+5 added−5 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
5 files+5 added−5 removed
- other:+5 added−5 removed
Provenance
- Commit
1936ca8- Tree
7fa8060- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
fdba0d2
5 files changed+5 added−5 removed
modified:docs/tutorial/tests.rst+1 added-1 removed
300 unmodified lines301 302 :attr:`~Response.data` contains the body of the response as bytes. If303 you expect a certain value to render on the page, check that it's in304 ``data``. Bytes must be compared to bytes. If you want to compare text,305-use :meth:`get_data(as_text=True) <werkzeug.wrappers.BaseResponse.get_data>`305+use :meth:`get_data(as_text=True) <werkzeug.wrappers.Response.get_data>`306 instead.307 308 ``pytest.mark.parametrize`` tells Pytest to run the same test function309 with different arguments. You use it here to test different invalid252 unmodified linesmodified:docs/testing.rst+1 added-1 removed
117 unmodified lines118 119 By using ``client.get`` we can send an HTTP ``GET`` request to the120 application with the given path. The return value will be a121 :class:`~flask.Flask.response_class` object. We can now use the122-:attr:`~werkzeug.wrappers.BaseResponse.data` attribute to inspect122+:attr:`~werkzeug.wrappers.Response.data` attribute to inspect123 the return value (as string) from the application.124 In this case, we ensure that ``'No entries here so far'``125 is part of the output.126 336 unmodified linesmodified:src/flask/app.py+1 added-1 removed
14 unmodified lines15 from werkzeug.routing import Map16 from werkzeug.routing import RequestRedirect17 from werkzeug.routing import RoutingException18 from werkzeug.routing import Rule19-from werkzeug.wrappers import BaseResponse19+from werkzeug.wrappers import Response as BaseResponse20 21 from . import cli22 from . import json23 from .config import Config2019 unmodified linesmodified:src/flask/testing.py+1 added-1 removed
3 unmodified lines4 import werkzeug.test5 from click.testing import CliRunner6 from werkzeug.test import Client7 from werkzeug.urls import url_parse8-from werkzeug.wrappers import BaseRequest8+from werkzeug.wrappers import Request as BaseRequest9 10 from . import _request_ctx_stack11 from .cli import ScriptInfo12 from .json import dumps as json_dumps249 unmodified linesmodified:src/flask/wrappers.py+1 added-1 removed
111 unmodified lines112 @property113 def max_cookie_size(self):114 """Read-only view of the :data:`MAX_COOKIE_SIZE` config key.115 116- See :attr:`~werkzeug.wrappers.BaseResponse.max_cookie_size` in116+ See :attr:`~werkzeug.wrappers.Response.max_cookie_size` in117 Werkzeug's docs.118 """119 if current_app:120 return current_app.config["MAX_COOKIE_SIZE"]3 unmodified lines