Add Route Resolution Benchmarking to Unit Test (#1499)
* feat: add benchmark tester for route resolution and cleanup test warnings Signed-off-by: Harsha Narayana <harsha2k4@gmail.com> * feat: refactor sanic benchmark test util into fixtures Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>
This commit is contained in:
committed by
Stephen Sadowski
parent
8a59907319
commit
34fe26e51b
@@ -279,9 +279,12 @@ def test_request_stream_blueprint(app):
|
||||
if body is None:
|
||||
break
|
||||
await response.write(body.decode("utf-8"))
|
||||
|
||||
return stream(streaming)
|
||||
|
||||
bp.add_route(post_add_route, '/post/add_route', methods=['POST'], stream=True)
|
||||
bp.add_route(
|
||||
post_add_route, "/post/add_route", methods=["POST"], stream=True
|
||||
)
|
||||
app.blueprint(bp)
|
||||
|
||||
assert app.is_request_stream is True
|
||||
|
||||
Reference in New Issue
Block a user