Pylons / webtest

Wraps any WSGI application and makes it easy to send test requests to that application, without starting up an HTTP server.
https://docs.pylonsproject.org/projects/webtest/en/latest/
Other
336 stars 110 forks source link

Improves linting to validate headers are 'native' string type #180

Closed bjmc closed 7 years ago

bjmc commented 7 years ago

Fixes #119

According to PEP 3333,

"Native" strings (which are always implemented using the type named str ) that are used for request/response headers and metadata

Currently, in Python2, TestApp does not validate that a WSGI application being tested is returning native strings for headers. This pull request adds that check.

gawel commented 7 years ago

Thanks :beer: