fastapi/tests/test_tutorial
Sebastián Ramírez 9eaed2eb37
📝 Update all docs to use `Annotated` as the main recommendation, with new examples and tests (#9268)
* 🍱 Add new source examples with Annotated for Query Params and String Validations

* 📝 Add new docs with Annotated for Query Params and String Validations

* 🚚 Rename incorrectly named tests for Query Params and str validations

*  Add new tests with Annotated for Query Params and Sring Validations examples

* 🍱 Add new examples with Annotated for Intro to Python Types

* 📝 Update Python Types Intro, include Annotated

* 🎨 Fix formatting in Query params and string validation, and highlight

* 🍱 Add new Annotated source examples for Path Params and Numeric Validations

* 📝 Update docs for Path Params and Numeric Validations with Annotated

* 🍱 Add new source examples with Annotated for Body - Multiple Params

* 📝 Update docs with Annotated for Body - Multiple Parameters

*  Add test for new Annotated examples in Body - Multiple Parameters

* 🍱 Add new Annotated source examples for Body Fields

* 📝 Update docs for Body Fields with new Annotated examples

*  Add new tests for new Annotated examples for Body Fields

* 🍱 Add new Annotated source examples for Schema Extra (Example Data)

* 📝 Update docs for Schema Extra with Annotated

*  Add tests for new Annotated examples for Schema Extra

* 🍱 Add new Annnotated source examples for Extra Data Types

* 📝 Update docs with Annotated for Extra Data Types

*  Add tests for new Annotated examples for Extra Data Types

* 🍱 Add new Annotated source examples for Cookie Parameters

* 📝 Update docs for Cookie Parameters with Annotated examples

*  Add tests for new Annotated source examples in Cookie Parameters

* 🍱 Add new Annotated examples for Header Params

* 📝 Update docs with Annotated examples for Header Parameters

*  Add tests for new Annotated examples for Header Params

* 🍱 Add new Annotated examples for Form Data

* 📝 Update Annotated docs for Form Data

*  Add tests for new Annotated examples in Form Data

* 🍱 Add new Annotated source examples for Request Files

* 📝 Update Annotated docs for Request Files

*  Test new Annotated examples for Request Files

* 🍱 Add new Annotated source examples for Request Forms and Files

*  Add tests for new Anotated examples for Request Forms and Files

* 🍱 Add new Annotated source examples for Dependencies and Advanced Dependencies

*  Add tests for new Annotated dependencies

* 📝 Add new docs for using Annotated with dependencies including type aliases

* 📝 Update docs for Classes as Dependencies with Annotated

* 📝 Update docs for Sub-dependencies with Annotated

* 📝 Update docs for Dependencies in path operation decorators with Annotated

* 📝 Update docs for Global Dependencies with Annotated

* 📝 Update docs for Dependencies with yield with Annotated

* 🎨 Update format in example for dependencies with Annotated

* 🍱 Add source examples with Annotated for Security

*  Add tests for new Annotated examples for security

* 📝 Update docs for Security - First Steps with Annotated

* 📝 Update docs for Security: Get Current User with Annotated

* 📝 Update docs for Simple OAuth2 with Password and Bearer with Annotated

* 📝 Update docs for OAuth2 with Password (and hashing), Bearer with JWT tokens with Annotated

* 📝 Update docs for Request Forms and Files with Annotated

* 🍱 Add new source examples for Bigger Applications with Annotated

*  Add new tests for Bigger Applications with Annotated

* 📝 Update docs for Bigger Applications - Multiple Files with Annotated

* 🍱 Add source examples for background tasks with Annotated

* 📝 Update docs for Background Tasks with Annotated

*  Add test for Background Tasks with Anotated

* 🍱 Add new source examples for docs for Testing with Annotated

* 📝 Update docs for Testing with Annotated

*  Add tests for Annotated examples for Testing

* 🍱 Add new source examples for Additional Status Codes with Annotated

*  Add tests for new Annotated examples for Additional Status Codes

* 📝 Update docs for Additional Status Codes with Annotated

* 📝 Update docs for Advanced Dependencies with Annotated

* 📝 Update docs for OAuth2 scopes with Annotated

* 📝 Update docs for HTTP Basic Auth with Annotated

* 🍱 Add source examples with Annotated for WebSockets

*  Add tests for new Annotated examples for WebSockets

* 📝 Update docs for WebSockets with new Annotated examples

* 🍱 Add source examples with Annotated for Settings and Environment Variables

* 📝 Update docs for Settings and Environment Variables with Annotated

* 🍱 Add new source examples for testing dependencies with Annotated

*  Add tests for new examples for testing dependencies

* 📝 Update docs for testing dependencies with new Annotated examples

*  Update and fix marker for Python 3.9 test

* 🔧 Update Ruff ignores for source examples in docs

*  Fix some tests in the grid for Python 3.9 (incorrectly testing 3.10)

* 🔥 Remove source examples and tests for (non existent) docs section about Annotated, as it's covered in all the rest of the docs
2023-03-18 13:29:59 +01:00
..
test_additional_responses 🐛 Fix JSON Schema for `ValidationError` at field `loc` (#3810) 2022-04-17 19:41:46 +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 🐛 Fix JSON Schema for `ValidationError` at field `loc` (#3810) 2022-04-17 19:41:46 +02: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 Auto-generate OpenAPI servers from root_path (#1596) 2020-07-10 19:28:18 +02:00
test_bigger_applications 📝 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_body ⬆ 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_body_fields 📝 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_body_multiple_params 📝 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_body_nested_models Fix new/recent tests with new fixed `ValidationError` JSON Schema (#4806) 2022-04-17 20:55:36 +00:00
test_body_updates Fix new/recent tests with new fixed `ValidationError` JSON Schema (#4806) 2022-04-17 20:55:36 +00:00
test_conditional_openapi Add the `docs_src` directory to test coverage and update tests (#1904) 2021-07-29 11:26:07 +02:00
test_cookie_params 📝 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_cors ⬆ Upgrade isort to version 5.x.x (#1670) 2020-07-09 20:06:12 +02:00
test_custom_request_and_route ⬆ 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_custom_response ⬆ 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_dataclasses Add support for PEP-593 `Annotated` for specifying dependencies and parameters (#4871) 2023-03-17 21:35:45 +01:00
test_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_events Add support for `lifespan` async context managers (superseding `startup` and `shutdown` events) (#2944) 2023-03-07 16:46:00 +01:00
test_extending_openapi Enable configuring Swagger UI parameters (#2568) 2022-01-16 20:26:24 +01:00
test_extra_data_types 📝 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_extra_models Fix new/recent tests with new fixed `ValidationError` JSON Schema (#4806) 2022-04-17 20:55:36 +00:00
test_first_steps ⬆ Upgrade isort to version 5.x.x (#1670) 2020-07-09 20:06:12 +02:00
test_generate_clients Fix new/recent tests with new fixed `ValidationError` JSON Schema (#4806) 2022-04-17 20:55:36 +00:00
test_handling_errors 🐛 Fix JSON Schema for `ValidationError` at field `loc` (#3810) 2022-04-17 19:41:46 +02:00
test_header_params 📝 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_metadata Add additonal OpenAPI metadata parameters to `FastAPI` class, shown on the automatic API docs UI (#1812) 2021-07-29 17:10:22 +02:00
test_openapi_callbacks 🐛 Fix JSON Schema for `ValidationError` at field `loc` (#3810) 2022-04-17 19:41:46 +02:00
test_path_operation_advanced_configurations ⬆ 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_path_operation_configurations Fix new/recent tests with new fixed `ValidationError` JSON Schema (#4806) 2022-04-17 20:55:36 +00:00
test_path_params 🐛 Fix JSON Schema for `ValidationError` at field `loc` (#3810) 2022-04-17 19:41:46 +02:00
test_query_params Fix new/recent tests with new fixed `ValidationError` JSON Schema (#4806) 2022-04-17 20:55:36 +00:00
test_query_params_str_validations 📝 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_request_files 📝 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_request_forms 📝 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_request_forms_and_files 📝 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_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 📝 Update docs and examples for Response Model with Return Type Annotations, and update runtime error (#5873) 2023-01-10 16:22:47 +00:00
test_schema_extra_example 📝 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_security 📝 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_settings Add the `docs_src` directory to test coverage and update tests (#1904) 2021-07-29 11:26:07 +02:00
test_sql_databases 🔥 Delete duplicated tests in `tests/test_tutorial/test_sql_databases/test_sql_databases.py` (#5040) 2022-08-26 16:08:45 +02:00
test_sql_databases_peewee ⬆ Upgrade version required of Starlette from `0.19.1` to `0.20.4` (#4820) 2022-09-15 14:32:05 +02:00
test_sub_applications Auto-generate OpenAPI servers from root_path (#1596) 2020-07-10 19:28:18 +02:00
test_templates ✔ Improve support for tests in editor (#1699) 2020-07-10 11:08:19 +02:00
test_testing 📝 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_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