"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/flask/testing.py" between
flask-1.1.1.tar.gz and flask-1.1.2.tar.gz

About: Flask is a lightweight Python WSGI web application framework.

testing.py  (flask-1.1.1):testing.py  (flask-1.1.2)
skipping to change at line 100 skipping to change at line 100
The serialization will be configured according to the config associated The serialization will be configured according to the config associated
with this EnvironBuilder's ``app``. with this EnvironBuilder's ``app``.
""" """
kwargs.setdefault("app", self.app) kwargs.setdefault("app", self.app)
return json_dumps(obj, **kwargs) return json_dumps(obj, **kwargs)
def make_test_environ_builder(*args, **kwargs): def make_test_environ_builder(*args, **kwargs):
"""Create a :class:`flask.testing.EnvironBuilder`. """Create a :class:`flask.testing.EnvironBuilder`.
.. deprecated: 1.1 .. deprecated: 1.1
Will be removed in 1.2. Construct ``flask.testing.EnvironBuilder`` Will be removed in 2.0. Construct
directly instead. ``flask.testing.EnvironBuilder`` directly instead.
""" """
warnings.warn( warnings.warn(
DeprecationWarning( DeprecationWarning(
'"make_test_environ_builder()" is deprecated and will be removed ' '"make_test_environ_builder()" is deprecated and will be'
'in 1.2. Construct "flask.testing.EnvironBuilder" directly ' ' removed in 2.0. Construct "flask.testing.EnvironBuilder"'
"instead." " directly instead."
) )
) )
return EnvironBuilder(*args, **kwargs) return EnvironBuilder(*args, **kwargs)
class FlaskClient(Client): class FlaskClient(Client):
"""Works like a regular Werkzeug test client but has some knowledge about """Works like a regular Werkzeug test client but has some knowledge about
how Flask works to defer the cleanup of the request context stack to the how Flask works to defer the cleanup of the request context stack to the
end of a ``with`` body when used in a ``with`` statement. For general end of a ``with`` body when used in a ``with`` statement. For general
information about how to use this class refer to information about how to use this class refer to
:class:`werkzeug.test.Client`. :class:`werkzeug.test.Client`.
 End of changes. 2 change blocks. 
5 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)