fastapi/tests/test_tutorial/test_dependencies
Sebastián Ramírez a4aa79e0b4
Add support for raising exceptions (including `HTTPException`) in dependencies with `yield` in the exit code, do not support them in background tasks (#10831)
* ♻️ Refactor dependency AsyncExitStack logic, exit dependencies after creating the response, before sending it

*  Update tests for dependencies exit, check they are finished before the response is sent

* 🔥 Remove ExitAsyncStackMiddleware as it's no longer needed

* 📝 Update docs for dependencies with yield

* 📝 Update release notes

* 📝 Add source examples for new dependencies with yield raising

*  Add tests for new dependencies raising after yield

* 📝 Update release notes
2023-12-25 18:57:35 +01:00
..
__init__.py ♻️ Re-format tutorials, files names and tests 2018-12-18 21:59:06 +04:00
test_tutorial001.py Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_tutorial001_an.py Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_tutorial001_an_py39.py Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_tutorial001_an_py310.py Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_tutorial001_py310.py Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_tutorial004.py Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_tutorial004_an.py Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_tutorial004_an_py39.py Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_tutorial004_an_py310.py Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_tutorial004_py310.py Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_tutorial006.py Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_tutorial006_an.py Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_tutorial006_an_py39.py Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_tutorial008b.py Add support for raising exceptions (including `HTTPException`) in dependencies with `yield` in the exit code, do not support them in background tasks (#10831) 2023-12-25 18:57:35 +01:00
test_tutorial008b_an.py Add support for raising exceptions (including `HTTPException`) in dependencies with `yield` in the exit code, do not support them in background tasks (#10831) 2023-12-25 18:57:35 +01:00
test_tutorial008b_an_py39.py Add support for raising exceptions (including `HTTPException`) in dependencies with `yield` in the exit code, do not support them in background tasks (#10831) 2023-12-25 18:57:35 +01:00
test_tutorial012.py Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_tutorial012_an.py Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_tutorial012_an_py39.py Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00