diff --git a/tests/test_endpoint_with_async_class_decorator.py b/tests/test_endpoint_with_async_class_decorator.py index da322ef66..a5e225103 100644 --- a/tests/test_endpoint_with_async_class_decorator.py +++ b/tests/test_endpoint_with_async_class_decorator.py @@ -15,11 +15,13 @@ class SomeDecorator: app = FastAPI() + @app.get("/") @SomeDecorator async def route1(): return {"working": True} + client = TestClient(app)