Upgrade tests for sanic-routing changes (#2405)

This commit is contained in:
Adam Hopkins
2022-03-23 13:43:36 +02:00
committed by GitHub
parent 0030425c8c
commit 6e0a6871b5
2 changed files with 1 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ async def handler(request):
return response.redirect("/sleep/3")
@app.get("/sleep/<t:number>")
@app.get("/sleep/<t:float>")
async def handler2(request, t=0.3):
await sleep(t)
return response.text(f"Slept {t:.1f} seconds.\n")