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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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")

View File

@ -1,8 +1,6 @@
import asyncio
import re
from unittest.mock import Mock
import pytest
from sanic_routing.exceptions import (