json takes str, not bytes
This commit is contained in:
parent
dc6b4925df
commit
eb66621544
|
@ -560,7 +560,7 @@ def test_streaming_new_api(app):
|
||||||
# We should have no b"" or None, just proper chunks
|
# We should have no b"" or None, just proper chunks
|
||||||
assert data
|
assert data
|
||||||
assert isinstance(data, bytes)
|
assert isinstance(data, bytes)
|
||||||
ret.append(data)
|
ret.append(data.decode("ASCII"))
|
||||||
return json(ret)
|
return json(ret)
|
||||||
|
|
||||||
request, response = app.test_client.post("/1", data="TEST data")
|
request, response = app.test_client.post("/1", data="TEST data")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user