Fix line length again...

This commit is contained in:
Eli Uriegas 2017-03-28 22:47:52 -05:00
parent 04a0774ee5
commit f0a55b5cbb
2 changed files with 9 additions and 2 deletions

View File

@ -331,7 +331,11 @@ def stream(
:param headers: Custom Headers.
"""
return StreamingHTTPResponse(
streaming_fn, headers=headers, content_type=content_type, status=status)
streaming_fn,
headers=headers,
content_type=content_type,
status=status
)
def redirect(to, headers=None, status=302,

View File

@ -88,4 +88,7 @@ def test_chained_redirect(redirect_app):
assert request.url.endswith('/1')
assert response.status == 200
assert response.text == 'OK'
assert response.url.endswith('/3')
try:
assert response.url.endswith('/3')
except AttributeError:
assert response.url.path.endswith('/3')