fastapi/tests/test_tutorial
Sebastián Ramírez 05ca41cfd1
Add reference (code API) docs with PEP 727, add subclass with custom docstrings for `BackgroundTasks`, refactor docs structure (#10392)
*  Add mkdocstrings and griffe-typingdoc to dependencies

* 🔧 Add mkdocstrings configs to MkDocs

* 📝 Add first WIP reference page

* ⬆️ Upgrade typing-extensions to the minimum version including Doc()

* 📝 Add docs to FastAPI parameters

* 📝 Add docstrings for OpenAPI docs utils

* 📝 Add docstrings for security utils

* 📝 Add docstrings for UploadFile

* 📝 Update docstrings in FastAPI class

* 📝 Add docstrings for path operation methods

* 📝 Add docstring for jsonable_encoder

* 📝 Add docstrings for exceptions

* 📝 Add docstsrings for parameter functions

* 📝 Add docstrings for responses

* 📝 Add docstrings for APIRouter

* ♻️ Sub-class BackgroundTasks to document it with docstrings

* 📝 Update usage of background tasks in dependencies

*  Update tests with new deprecation warnings

* 📝 Add new reference docs

* 🔧 Update MkDocs with new reference docs

*  Update pytest fixture, deprecation is raised only once

* 🎨 Update format for types in exceptions.py

* ♻️ Update annotations in BackgroundTask, `Annotated` can't take ParamSpec's P.args or P.kwargs

* ✏️ Fix typos caught by @pawamoy

* 🔧 Update and fix MkDocstrings configs from @pawamoy tips

* 📝 Update reference docs

* ✏️ Fix typos found by @pawamoy

*  Add HTTPX as a dependency for docs, for the TestClient

* 🔧 Update MkDocs config, rename websockets reference

* 🔇 Add type-ignores for Doc as the stubs haven't been released for mypy

* 🔥 Remove duplicated deprecated notice

* 🔇 Remove typing error for unreleased stub in openapi/docs.py

*  Add tests for UploadFile for coverage

* ⬆️ Upgrade griffe-typingdoc==0.2.2

* 📝 Refactor docs structure

* 🔨 Update README generation with new index frontmatter and style

* 🔨 Update generation of languages, remove from top menu, keep in lang menu

* 📝 Add OpenAPI Pydantic models

* 🔨 Update docs script to not translate Reference and Release Notes

* 🔧 Add reference for OpenAPI models

* 🔧 Update MkDocs config for mkdocstrings insiders

* 👷 Install mkdocstring insiders in CI for docs

* 🐛 Fix MkDocstrings insiders install URL

*  Move dependencies shared by docs and tests to its own requirements file

* 👷 Update cache keys for test and docs dependencies

* 📝 Remove no longer needed __init__ placeholder docstrings

* 📝 Move docstring for APIRouter to the class level (not __init__ level)

* 🔥 Remove no longer needed dummy placeholder __init__ docstring
2023-10-18 16:36:40 +04:00
..
test_additional_responses Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_additional_status_codes 📝 Update all docs to use `Annotated` as the main recommendation, with new examples and tests (#9268) 2023-03-18 13:29:59 +01:00
test_advanced_middleware ⬆ Upgrade Starlette to `0.21.0`, including the new [`TestClient` based on HTTPX](https://github.com/encode/starlette/releases/tag/0.21.0) (#5471) 2022-11-13 15:26:09 +01:00
test_async_sql_databases Add reference (code API) docs with PEP 727, add subclass with custom docstrings for `BackgroundTasks`, refactor docs structure (#10392) 2023-10-18 16:36:40 +04:00
test_async_tests Add support for Trio via AnyIO (#3372) 2021-10-06 17:32:11 +02:00
test_background_tasks 📝 Update all docs to use `Annotated` as the main recommendation, with new examples and tests (#9268) 2023-03-18 13:29:59 +01:00
test_behind_a_proxy Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_bigger_applications Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_body Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_body_fields Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_body_multiple_params Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_body_nested_models Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_body_updates ⬆️ Upgrade compatibility with Pydantic v2.4, new renamed functions and JSON Schema input/output models with default values (#10344) 2023-09-27 23:14:40 -05:00
test_conditional_openapi Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_configure_swagger_ui 📝 Add new docs section, How To - Recipes, move docs that don't have to be read by everyone to How To (#10114) 2023-08-19 21:54:04 +02:00
test_cookie_params Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_cors ⬆ Upgrade isort to version 5.x.x (#1670) 2020-07-09 20:06:12 +02:00
test_custom_docs_ui 📝 Add new docs section, How To - Recipes, move docs that don't have to be read by everyone to How To (#10114) 2023-08-19 21:54:04 +02:00
test_custom_request_and_route Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_custom_response Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_dataclasses ⬆️ Upgrade compatibility with Pydantic v2.4, new renamed functions and JSON Schema input/output models with default values (#10344) 2023-09-27 23:14:40 -05:00
test_dependencies Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_events Add reference (code API) docs with PEP 727, add subclass with custom docstrings for `BackgroundTasks`, refactor docs structure (#10392) 2023-10-18 16:36:40 +04:00
test_extending_openapi 📝 Add new docs section, How To - Recipes, move docs that don't have to be read by everyone to How To (#10114) 2023-08-19 21:54:04 +02:00
test_extra_data_types Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_extra_models Enable Pydantic's serialization mode for responses, add support for Pydantic's `computed_field`, better OpenAPI for response models, proper required attributes, better generated clients (#10011) 2023-08-04 22:47:07 +02:00
test_first_steps Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_generate_clients Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_handling_errors Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_header_params Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_metadata Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_openapi_callbacks Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_openapi_webhooks Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_path_operation_advanced_configurations ⬆️ Upgrade compatibility with Pydantic v2.4, new renamed functions and JSON Schema input/output models with default values (#10344) 2023-09-27 23:14:40 -05:00
test_path_operation_configurations ⬆️ Upgrade compatibility with Pydantic v2.4, new renamed functions and JSON Schema input/output models with default values (#10344) 2023-09-27 23:14:40 -05:00
test_path_params ⬆️ Upgrade compatibility with Pydantic v2.4, new renamed functions and JSON Schema input/output models with default values (#10344) 2023-09-27 23:14:40 -05:00
test_query_params Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_query_params_str_validations Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_request_files Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_request_forms Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_request_forms_and_files Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_response_change_status_code ⬆ Upgrade isort to version 5.x.x (#1670) 2020-07-09 20:06:12 +02:00
test_response_cookies ⬆ Upgrade isort to version 5.x.x (#1670) 2020-07-09 20:06:12 +02:00
test_response_headers ⬆ Upgrade isort to version 5.x.x (#1670) 2020-07-09 20:06:12 +02:00
test_response_model Enable Pydantic's serialization mode for responses, add support for Pydantic's `computed_field`, better OpenAPI for response models, proper required attributes, better generated clients (#10011) 2023-08-04 22:47:07 +02:00
test_schema_extra_example Add support for `openapi_examples` in all FastAPI parameters (#10152) 2023-08-26 20:03:13 +02:00
test_security Enable Pydantic's serialization mode for responses, add support for Pydantic's `computed_field`, better OpenAPI for response models, proper required attributes, better generated clients (#10011) 2023-08-04 22:47:07 +02:00
test_separate_openapi_schemas ⬆️ Upgrade compatibility with Pydantic v2.4, new renamed functions and JSON Schema input/output models with default values (#10344) 2023-09-27 23:14:40 -05:00
test_settings Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_sql_databases Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_sub_applications Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_templates ✔ Improve support for tests in editor (#1699) 2020-07-10 11:08:19 +02:00
test_testing Add reference (code API) docs with PEP 727, add subclass with custom docstrings for `BackgroundTasks`, refactor docs structure (#10392) 2023-10-18 16:36:40 +04:00
test_testing_dependencies 📝 Update all docs to use `Annotated` as the main recommendation, with new examples and tests (#9268) 2023-03-18 13:29:59 +01:00
test_websockets 📝 Update all docs to use `Annotated` as the main recommendation, with new examples and tests (#9268) 2023-03-18 13:29:59 +01:00
test_wsgi ⬆ Upgrade isort to version 5.x.x (#1670) 2020-07-09 20:06:12 +02:00
__init__.py ♻️ Re-format tutorials, files names and tests 2018-12-18 21:59:06 +04:00