Browse Source

Update tests to account for class dependencies

pull/14448/head
Sebastián Ramírez 8 months ago
parent
commit
3e40085bea
  1. 8
      tests/test_dependency_wrapped.py

8
tests/test_dependency_wrapped.py

@ -149,8 +149,8 @@ async def get_wrapped_class_instance_async_dependency(
@app.get("/wrapped-class-dependency/")
async def get_wrapped_class_dependency(value: bool = Depends(wrapped_class_dep)):
return value
async def get_wrapped_class_dependency(value: ClassDep = Depends(wrapped_class_dep)):
return value.value
@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/")
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/")

Loading…
Cancel
Save