changeset 171cdfb43730 in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset&node=171cdfb43730
description:
Always use a Response wrapper when using testing client
This normalize the behavior through different versions of werkzeug.
issue11353
review385001002
diffstat:
trytond/tests/test_wsgi.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (39 lines):
diff -r 92710378cff8 -r 171cdfb43730 trytond/tests/test_wsgi.py
--- a/trytond/tests/test_wsgi.py Fri Apr 22 09:34:19 2022 +0200
+++ b/trytond/tests/test_wsgi.py Fri Apr 22 18:32:25 2022 +0200
@@ -34,7 +34,7 @@
sentinel.request = request
raise exception
- client = Client(app)
+ client = Client(app, Response)
_ = client.get('/willfail')
spy.assert_called_once_with(app, sentinel.request, exception)
@@ -60,7 +60,7 @@
sentinel.request = request
raise exception
- client = Client(app)
+ client = Client(app, Response)
_ = client.get('/willfail')
spy1.assert_called_once_with(app, sentinel.request, exception)
@@ -84,7 +84,7 @@
sentinel.request = request
raise exception
- client = Client(app)
+ client = Client(app, Response)
_ = client.get('/willfail')
spy.assert_called_once_with(app, sentinel.request, exception)
@@ -105,7 +105,7 @@
def _route(request):
raise self.TestException('foo')
- client = Client(app)
+ client = Client(app, Response)
response = client.get('/willfail')
self.assertEqual(next(response.response), b'baz')