Bert JW Regeer
2016-10-03 a897b56fef11df0c1691cd21e990dcb6027cba1a
refs
author Bert JW Regeer <bertjw@regeer.org>
Monday, October 3, 2016 06:27 +0200
committer Bert JW Regeer <bertjw@regeer.org>
Monday, October 3, 2016 06:27 +0200
commita897b56fef11df0c1691cd21e990dcb6027cba1a
tree 709a6619687f1a43086baf3f03edb5b3a36aac3c tree | zip | gz
parent 44d0f6ae8d706b542f0bcc9f96b9fb9c502187b7 view | diff
All of the tests assume that there is a Content-Type set

But the application in this case doesn't actually send a Content-Type,
and thus there is no charset, and thus the tests should be assuming the
output is binary not text.

Add a Content-Type to be sent back from the app.

This is required to pass all tests on WebOb >1.7 where
Request.get_response(app) will no longer add the default_content_type if
a headerlist is passed in to Response.__init__, this allows
the Response to match what was provided by the app.
1 files modified
43 ■■■■■ changed files
pyramid/tests/test_scripts/test_prequest.py 43 ●●●●● diff | view | raw | blame | history