..
test_modules_same_name_body
✨ Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. ( #4906 )
2022-05-13 18:38:22 -05:00
test_tutorial
📝 Update all docs to use `Annotated` as the main recommendation, with new examples and tests ( #9268 )
2023-03-18 13:29:59 +01:00
__init__.py
✅ Add first tests, for path and query
2018-12-08 11:56:07 +04:00
main.py
✨ Add support for PEP-593 `Annotated` for specifying dependencies and parameters ( #4871 )
2023-03-17 21:35:45 +01:00
test_additional_properties.py
🐛 Fix JSON Schema for `ValidationError` at field `loc` ( #3810 )
2022-04-17 19:41:46 +02:00
test_additional_response_extra.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_additional_responses_bad.py
✨ Re-export utils from Starlette ( #1064 )
2020-03-01 21:49:20 +01:00
test_additional_responses_custom_model_in_callback.py
🐛 Fix JSON Schema for `ValidationError` at field `loc` ( #3810 )
2022-04-17 19:41:46 +02:00
test_additional_responses_custom_validationerror.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_additional_responses_default_validationerror.py
🐛 Fix JSON Schema for `ValidationError` at field `loc` ( #3810 )
2022-04-17 19:41:46 +02:00
test_additional_responses_response_class.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_additional_responses_router.py
🐛 Fix support for strings in OpenAPI status codes: `default`, `1XX`, `2XX`, `3XX`, `4XX`, `5XX` ( #5187 )
2022-10-14 22:44:22 +02:00
test_ambiguous_params.py
✨ Add support for PEP-593 `Annotated` for specifying dependencies and parameters ( #4871 )
2023-03-17 21:35:45 +01:00
test_annotated.py
🐛 Fix using `Annotated` in routers or path operations decorated multiple times ( #9315 )
2023-04-13 10:49:22 -07:00
test_application.py
✨ Add support for PEP-593 `Annotated` for specifying dependencies and parameters ( #4871 )
2023-03-17 21:35:45 +01:00
test_callable_endpoint.py
📝 Use Optional in docs ( #1644 )
2020-06-28 20:13:30 +02:00
test_custom_middleware_exception.py
✨ Allow custom middlewares to raise `HTTPException`s and propagate them ( #2036 )
2022-08-25 23:44:40 +02:00
test_custom_route_class.py
✨ Use Ruff for linting ( #5630 )
2022-11-13 19:19:04 +01:00
test_custom_schema_fields.py
🐛 Support custom OpenAPI / JSON Schema fields in the generated output OpenAPI ( #1429 )
2021-07-03 19:15:59 +02:00
test_custom_swagger_ui_redirect.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_datastructures.py
🐛 Close FormData (uploaded files) after the request is done ( #5465 )
2022-11-03 13:06:52 +01:00
test_datetime_custom_encoder.py
✨ Re-export utils from Starlette ( #1064 )
2020-03-01 21:49:20 +01:00
test_default_response_class.py
✨ Re-export utils from Starlette ( #1064 )
2020-03-01 21:49:20 +01:00
test_default_response_class_router.py
✨ Re-export utils from Starlette ( #1064 )
2020-03-01 21:49:20 +01:00
test_dependency_cache.py
🐛 Fix cached dependencies when using a dependency in `Security()` and other places (e.g. `Depends()`) with different OAuth2 scopes ( #2945 )
2022-08-23 13:30:24 +00:00
test_dependency_class.py
🔧 Add Flake8 linting ( #1774 )
2020-08-09 12:54:05 +02:00
test_dependency_contextmanager.py
✨ Update internal `AsyncExitStack` to fix context for dependencies with `yield` ( #4575 )
2022-02-17 13:40:12 +01:00
test_dependency_contextvars.py
✨ Update internal `AsyncExitStack` to fix context for dependencies with `yield` ( #4575 )
2022-02-17 13:40:12 +01:00
test_dependency_duplicates.py
🐛 Fix JSON Schema for `ValidationError` at field `loc` ( #3810 )
2022-04-17 19:41:46 +02:00
test_dependency_normal_exceptions.py
✨ Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. ( #4906 )
2022-05-13 18:38:22 -05:00
test_dependency_overrides.py
📝 Use Optional in docs ( #1644 )
2020-06-28 20:13:30 +02:00
test_dependency_security_overrides.py
🐛 Fix testing security scopes when using dependency overrides ( #1549 )
2020-06-14 17:54:46 +02:00
test_deprecated_openapi_prefix.py
✨ Auto-generate OpenAPI servers from root_path ( #1596 )
2020-07-10 19:28:18 +02:00
test_duplicate_models_openapi.py
✅ Update response_model_by_alias ( #1642 )
2020-06-28 13:58:21 +02:00
test_empty_router.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_enforce_once_required_parameter.py
⬆ 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_exception_handlers.py
✨ Update internal `AsyncExitStack` to fix context for dependencies with `yield` ( #4575 )
2022-02-17 13:40:12 +01:00
test_extra_routes.py
⬆ 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_filter_pydantic_sub_model.py
🐛 Fix JSON Schema for `ValidationError` at field `loc` ( #3810 )
2022-04-17 19:41:46 +02:00
test_forms_from_non_typing_sequences.py
✨ Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. ( #4906 )
2022-05-13 18:38:22 -05:00
test_generate_unique_id_function.py
✅ Fix new/recent tests with new fixed `ValidationError` JSON Schema ( #4806 )
2022-04-17 20:55:36 +00:00
test_get_request_body.py
⬆ 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_http_connection_injection.py
✨ Add support for injecting HTTPConnection ( #1827 )
2020-08-09 15:56:41 +02:00
test_include_route.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_include_router_defaults_overrides.py
🐛 Fix JSON Schema for `ValidationError` at field `loc` ( #3810 )
2022-04-17 19:41:46 +02:00
test_infer_param_optionality.py
📝 Use Optional in docs ( #1644 )
2020-06-28 20:13:30 +02:00
test_inherited_custom_class.py
✨ Improve type annotations, add support for mypy --strict, internally and for external packages ( #2547 )
2020-12-20 19:50:00 +01:00
test_invalid_path_param.py
🐛 Fix path and query parameters receiving dict as valid ( #287 )
2019-06-03 21:59:40 +04:00
test_invalid_sequence_param.py
✨ Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. ( #4906 )
2022-05-13 18:38:22 -05:00
test_jsonable_encoder.py
✨ Add support in `jsonable_encoder` for include and exclude with dataclasses ( #4923 )
2022-09-08 16:29:23 +02:00
test_local_docs.py
✨ Improve type annotations, add support for mypy --strict, internally and for external packages ( #2547 )
2020-12-20 19:50:00 +01:00
test_multi_body_errors.py
🐛 Fix JSON Schema for `ValidationError` at field `loc` ( #3810 )
2022-04-17 19:41:46 +02:00
test_multi_query_errors.py
✨ Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. ( #4906 )
2022-05-13 18:38:22 -05:00
test_multipart_installation.py
✨ Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. ( #4906 )
2022-05-13 18:38:22 -05:00
test_no_swagger_ui_redirect.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_openapi_query_parameter_extension.py
🐛 Fix support for extending `openapi_extras` with parameter lists ( #4267 )
2022-08-26 09:26:20 +00:00
test_openapi_route_extensions.py
✨ Add support for extensions and updates to the OpenAPI schema in path operations ( #1922 )
2021-07-29 22:01:13 +02:00
test_openapi_servers.py
✨ Add support for OpenAPI servers metadata ( #1547 )
2020-06-14 15:38:29 +02:00
test_operations_signatures.py
✨ Add include, exclude, and by_alias to path operation methods ( #264 )
2019-05-27 16:08:13 +04:00
test_orjson_response_class.py
✨ Update `ORJSONResponse` to support non `str` keys and serializing Numpy arrays ( #3892 )
2022-09-02 10:17:31 +00:00
test_param_class.py
✨ Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. ( #4906 )
2022-05-13 18:38:22 -05:00
test_param_in_path_and_dependency.py
🐛 Fix JSON Schema for `ValidationError` at field `loc` ( #3810 )
2022-04-17 19:41:46 +02:00
test_param_include_in_schema.py
⬆ 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_params_repr.py
✨ Add support for PEP-593 `Annotated` for specifying dependencies and parameters ( #4871 )
2023-03-17 21:35:45 +01:00
test_path.py
✨ Add support for PEP-593 `Annotated` for specifying dependencies and parameters ( #4871 )
2023-03-17 21:35:45 +01:00
test_put_no_body.py
🐛 Fix JSON Schema for `ValidationError` at field `loc` ( #3810 )
2022-04-17 19:41:46 +02:00
test_query.py
✨ Add support for `FrozenSet` in parameters (e.g. query) ( #2938 )
2022-08-25 23:52:53 +02:00
test_read_with_orm_mode.py
✨ Add support for `read_with_orm_mode`, to support SQLModel relationship attributes ( #3757 )
2021-08-24 10:21:05 +00:00
test_repeated_cookie_headers.py
🐛 Fix duplicated headers set by indirect dependencies ( #1386 )
2020-06-13 14:44:51 +02:00
test_repeated_dependency_schema.py
✨ Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. ( #4906 )
2022-05-13 18:38:22 -05:00
test_repeated_parameter_alias.py
🐛 Fix edge case with repeated aliases names not shown in OpenAPI ( #2351 )
2022-08-18 20:31:19 +00:00
test_reponse_set_reponse_code_empty.py
✨ Add support for function return type annotations to declare the `response_model` ( #1436 )
2023-01-07 17:45:48 +04:00
test_request_body_parameters_media_type.py
✨ Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. ( #4906 )
2022-05-13 18:38:22 -05:00
test_required_noneable.py
✅ Add tests for required nonable parameters and body fields ( #4907 )
2022-05-14 19:08:31 +00:00
test_response_by_alias.py
🔧 Add Flake8 linting ( #1774 )
2020-08-09 12:54:05 +02:00
test_response_change_status_code.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_response_class_no_mediatype.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_response_code_no_body.py
🐛 Fix removing body from status codes that do not support it ( #5145 )
2022-07-14 13:19:42 +02:00
test_response_model_as_return_annotation.py
📝 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_response_model_include_exclude.py
🔧 Configure strict pytest options and update/refactor tests ( #2790 )
2021-07-19 21:14:58 +02:00
test_response_model_invalid.py
🐛 Admit valid types for Pydantic fields as responses models ( #1017 )
2020-02-29 14:04:35 +01:00
test_response_model_sub_types.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_route_scope.py
⬆️ Bump Starlette from 0.22.0 to 0.23.0 ( #5739 )
2023-02-08 11:23:07 +01:00
test_router_events.py
✨ Add support for `lifespan` async context managers (superseding `startup` and `shutdown` events) ( #2944 )
2023-03-07 16:46:00 +01:00
test_router_prefix_with_template.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_schema_extra_examples.py
✏ Fix typos in `tests/test_schema_extra_examples.py` ( #5126 )
2022-08-26 16:36:41 +02:00
test_security_api_key_cookie.py
⬆ 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_security_api_key_cookie_description.py
⬆ 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_security_api_key_cookie_optional.py
⬆ 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_security_api_key_header.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_security_api_key_header_description.py
✨ Add `description` parameter to all the security scheme classes, e.g. `APIKeyQuery(name="key", description="A very cool API key")` ( #1757 )
2021-07-29 12:30:48 +02:00
test_security_api_key_header_optional.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_security_api_key_query.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_security_api_key_query_description.py
✨ Add `description` parameter to all the security scheme classes, e.g. `APIKeyQuery(name="key", description="A very cool API key")` ( #1757 )
2021-07-29 12:30:48 +02:00
test_security_api_key_query_optional.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_security_http_base.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_security_http_base_description.py
✨ Add `description` parameter to all the security scheme classes, e.g. `APIKeyQuery(name="key", description="A very cool API key")` ( #1757 )
2021-07-29 12:30:48 +02:00
test_security_http_base_optional.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_security_http_basic_optional.py
📝 Update references to Requests for tests to HTTPX, and add HTTPX to extras ( #5628 )
2022-11-13 16:20:05 +01:00
test_security_http_basic_realm.py
📝 Update references to Requests for tests to HTTPX, and add HTTPX to extras ( #5628 )
2022-11-13 16:20:05 +01:00
test_security_http_basic_realm_description.py
📝 Update references to Requests for tests to HTTPX, and add HTTPX to extras ( #5628 )
2022-11-13 16:20:05 +01:00
test_security_http_bearer.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_security_http_bearer_description.py
✨ Add `description` parameter to all the security scheme classes, e.g. `APIKeyQuery(name="key", description="A very cool API key")` ( #1757 )
2021-07-29 12:30:48 +02:00
test_security_http_bearer_optional.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_security_http_digest.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_security_http_digest_description.py
✨ Add `description` parameter to all the security scheme classes, e.g. `APIKeyQuery(name="key", description="A very cool API key")` ( #1757 )
2021-07-29 12:30:48 +02:00
test_security_http_digest_optional.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_security_oauth2.py
🐛 Fix JSON Schema for `ValidationError` at field `loc` ( #3810 )
2022-04-17 19:41:46 +02:00
test_security_oauth2_authorization_code_bearer.py
✨ Auto-generate OpenAPI servers from root_path ( #1596 )
2020-07-10 19:28:18 +02:00
test_security_oauth2_authorization_code_bearer_description.py
✨ Add `description` parameter to all the security scheme classes, e.g. `APIKeyQuery(name="key", description="A very cool API key")` ( #1757 )
2021-07-29 12:30:48 +02:00
test_security_oauth2_optional.py
🐛 Fix JSON Schema for `ValidationError` at field `loc` ( #3810 )
2022-04-17 19:41:46 +02:00
test_security_oauth2_optional_description.py
🐛 Fix JSON Schema for `ValidationError` at field `loc` ( #3810 )
2022-04-17 19:41:46 +02:00
test_security_oauth2_password_bearer_optional.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_security_oauth2_password_bearer_optional_description.py
✨ Add `description` parameter to all the security scheme classes, e.g. `APIKeyQuery(name="key", description="A very cool API key")` ( #1757 )
2021-07-29 12:30:48 +02:00
test_security_openid_connect.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_security_openid_connect_description.py
✨ Add `description` parameter to all the security scheme classes, e.g. `APIKeyQuery(name="key", description="A very cool API key")` ( #1757 )
2021-07-29 12:30:48 +02:00
test_security_openid_connect_optional.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_serialize_response.py
🎨 Add typing.Optional to variables that accept None as value ( #1731 )
2020-08-03 14:29:07 +02:00
test_serialize_response_dataclass.py
🐛 Fix `jsonable_encoder` for dataclasses with pydantic-compatible fields ( #3607 )
2022-08-26 15:56:47 +02:00
test_serialize_response_model.py
✨ Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. ( #4906 )
2022-05-13 18:38:22 -05:00
test_skip_defaults.py
🔧 Add Flake8 linting ( #1774 )
2020-08-09 12:54:05 +02:00
test_starlette_exception.py
🎨 Format OpenAPI JSON in `test_starlette_exception.py` ( #5379 )
2022-11-03 21:06:00 +01:00
test_starlette_urlconvertors.py
⬆ Bump Starlette to version `0.22.0` to fix bad encoding for query parameters in `TestClient` ( #5659 )
2022-11-27 15:46:06 +01:00
test_sub_callbacks.py
🐛 Fix JSON Schema for `ValidationError` at field `loc` ( #3810 )
2022-04-17 19:41:46 +02:00
test_swagger_ui_init_oauth.py
🔧 Add Flake8 linting ( #1774 )
2020-08-09 12:54:05 +02:00
test_tuples.py
⬆ 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_typing_python39.py
📝 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_union_body.py
🐛 Fix JSON Schema for `ValidationError` at field `loc` ( #3810 )
2022-04-17 19:41:46 +02:00
test_union_inherited_body.py
⬆ Upgrade version required of Starlette from `0.19.1` to `0.20.4` ( #4820 )
2022-09-15 14:32:05 +02:00
test_validate_response.py
🐛 Fix `response_model` not invalidating `None` ( #2725 )
2022-08-22 19:17:45 +00:00
test_validate_response_dataclass.py
🎨 Add typing.Optional to variables that accept None as value ( #1731 )
2020-08-03 14:29:07 +02:00
test_validate_response_recursive.py
✅ Improve test debugging ( #1222 )
2020-04-08 06:37:38 +02:00
test_ws_router.py
✨ Use Ruff for linting ( #5630 )
2022-11-13 19:19:04 +01:00
utils.py
⬆ Upgrade version required of Starlette from `0.19.1` to `0.20.4` ( #4820 )
2022-09-15 14:32:05 +02:00