From 6e0a6871b5665fbccaef52f8ef336d68b0e13603 Mon Sep 17 00:00:00 2001 From: Adam Hopkins Date: Wed, 23 Mar 2022 13:43:36 +0200 Subject: [PATCH] Upgrade tests for sanic-routing changes (#2405) --- examples/delayed_response.py | 2 +- tests/test_routes.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/delayed_response.py b/examples/delayed_response.py index 3fab6812..141bf06a 100644 --- a/examples/delayed_response.py +++ b/examples/delayed_response.py @@ -11,7 +11,7 @@ async def handler(request): return response.redirect("/sleep/3") -@app.get("/sleep/") +@app.get("/sleep/") async def handler2(request, t=0.3): await sleep(t) return response.text(f"Slept {t:.1f} seconds.\n") diff --git a/tests/test_routes.py b/tests/test_routes.py index 3a7674c5..be23909f 100644 --- a/tests/test_routes.py +++ b/tests/test_routes.py @@ -1,8 +1,6 @@ import asyncio import re -from unittest.mock import Mock - import pytest from sanic_routing.exceptions import (