adding test coverage

This commit is contained in:
Naoki Shima
2023-02-15 10:35:41 +09:00
parent 01c895dbbb
commit 98cf8a78a1
2 changed files with 13 additions and 0 deletions

View File

@@ -42,6 +42,13 @@ async def get_date():
async def get_datetime(request: Request, response: Response):
return {"now": pendulum.now()}
@cache(namespace="test")
async def func_kwargs(*unused_args, **kwargs):
return kwargs
@app.get("/kwargs")
async def get_kwargs(name: str):
return await func_kwargs(name, name=name)
@app.get("/sync-me")
@cache(namespace="test")