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
@@ -134,7 +134,7 @@ def test_query_string(app):
|
||||
|
||||
def test_uri_template(app):
|
||||
@app.route("/foo/<id:int>/bar/<name:[A-z]+>")
|
||||
async def handler(request):
|
||||
async def handler(request, id, name):
|
||||
return text("OK")
|
||||
|
||||
request, response = app.test_client.get("/foo/123/bar/baz")
|
||||
|
||||
Reference in New Issue
Block a user