Upgrade tests for sanic-routing changes (#2405)
This commit is contained in:
parent
0030425c8c
commit
6e0a6871b5
|
@ -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")
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
import asyncio
|
||||
import re
|
||||
|
||||
from unittest.mock import Mock
|
||||
|
||||
import pytest
|
||||
|
||||
from sanic_routing.exceptions import (
|
||||
|
|
Loading…
Reference in New Issue
Block a user