Add handler names for websockets for url_for usage (#1880)

This commit is contained in:
Adam Hopkins
2020-06-28 14:45:52 +03:00
committed by GitHub
parent 761eef7d96
commit 938c49b899
6 changed files with 100 additions and 14 deletions

View File

@@ -614,7 +614,7 @@ def test_response_body_bytes_deprecated(app):
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter("always")
HTTPResponse(body_bytes=b'bytes')
HTTPResponse(body_bytes=b"bytes")
assert len(w) == 1
assert issubclass(w[0].category, DeprecationWarning)