json takes str, not bytes

This commit is contained in:
L. Kärkkäinen 2020-03-04 13:21:49 +02:00
parent dc6b4925df
commit eb66621544

View File

@ -560,7 +560,7 @@ def test_streaming_new_api(app):
# We should have no b"" or None, just proper chunks
assert data
assert isinstance(data, bytes)
ret.append(data)
ret.append(data.decode("ASCII"))
return json(ret)
request, response = app.test_client.post("/1", data="TEST data")