Update tests to account for class dependencies

This commit is contained in:
Sebastián Ramírez 2025-12-04 01:33:23 +01:00
parent 09c871dac8
commit 3e40085bea
1 changed files with 4 additions and 4 deletions

View File

@ -149,8 +149,8 @@ async def get_wrapped_class_instance_async_dependency(
@app.get("/wrapped-class-dependency/") @app.get("/wrapped-class-dependency/")
async def get_wrapped_class_dependency(value: bool = Depends(wrapped_class_dep)): async def get_wrapped_class_dependency(value: ClassDep = Depends(wrapped_class_dep)):
return value return value.value
@app.get("/wrapped-endpoint/") @app.get("/wrapped-endpoint/")
@ -232,9 +232,9 @@ async def get_wrapped_class_instance_async_dependency_async_wrapper(
@app.get("/wrapped-class-dependency-async-wrapper/") @app.get("/wrapped-class-dependency-async-wrapper/")
async def get_wrapped_class_dependency_async_wrapper( async def get_wrapped_class_dependency_async_wrapper(
value: bool = Depends(wrapped_class_dep_async_wrapper), value: ClassDep = Depends(wrapped_class_dep_async_wrapper),
): ):
return value return value.value
@app.get("/wrapped-endpoint-async-wrapper/") @app.get("/wrapped-endpoint-async-wrapper/")