diff --git a/tests/test_endpoint_with_async_class_decorator.py b/tests/test_endpoint_with_async_class_decorator.py index c75823b18..da322ef66 100644 --- a/tests/test_endpoint_with_async_class_decorator.py +++ b/tests/test_endpoint_with_async_class_decorator.py @@ -13,6 +13,8 @@ class SomeDecorator: return await self.route(*args, **kwargs) +app = FastAPI() + @app.get("/") @SomeDecorator async def route1():