..
test_filter_pydantic_sub_model
✨ Add support for Pydantic v2 (#9816)
2 years ago
test_modules_same_name_body
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_tutorial
✏️ Fix typos in docs (#11926)
8 months ago
test_validate_response_recursive
✨ Add support for Pydantic v2 (#9816)
2 years ago
__init__.py
✅ Add first tests, for path and query
6 years ago
main.py
🐛 Fix support for query parameters with list types, handle JSON encoding Pydantic `UndefinedType` (#9929)
12 months ago
test_additional_properties.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_additional_properties_bool.py
✨ Add support for Pydantic v2 (#9816)
2 years ago
test_additional_response_extra.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_additional_responses_bad.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_additional_responses_custom_model_in_callback.py
✨ Add support for Pydantic v2 (#9816)
2 years ago
test_additional_responses_custom_validationerror.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_additional_responses_default_validationerror.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_additional_responses_response_class.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_additional_responses_router.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_ambiguous_params.py
✨ Add support for multiple Annotated annotations, e.g. `Annotated[str, Field(), Query()]` (#10773)
1 year ago
test_annotated.py
✨ Add support for Pydantic's 2.7 new deprecated Field parameter, remove URL from validation errors response (#11461)
12 months ago
test_application.py
🐛 Fix support for query parameters with list types, handle JSON encoding Pydantic `UndefinedType` (#9929)
12 months ago
test_callable_endpoint.py
📝 Use Optional in docs (#1644)
5 years ago
test_compat.py
⬆️ Upgrade compatibility with Pydantic v2.4, new renamed functions and JSON Schema input/output models with default values (#10344)
2 years ago
test_computed_fields.py
✨ 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)
2 years ago
test_custom_middleware_exception.py
✨ Allow custom middlewares to raise `HTTPException`s and propagate them (#2036)
3 years ago
test_custom_route_class.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_custom_schema_fields.py
✨ Add support for Pydantic v2 (#9816)
2 years ago
test_custom_swagger_ui_redirect.py
✅ Improve test debugging (#1222)
5 years ago
test_datastructures.py
✨ Add reference (code API) docs with PEP 727, add subclass with custom docstrings for `BackgroundTasks`, refactor docs structure (#10392)
1 year ago
test_datetime_custom_encoder.py
✨ Add support for Pydantic v2 (#9816)
2 years ago
test_default_response_class.py
✨ Re-export utils from Starlette (#1064)
5 years ago
test_default_response_class_router.py
✨ Re-export utils from Starlette (#1064)
5 years ago
test_dependency_cache.py
🐛 Fix cached dependencies when using a dependency in `Security()` and other places (e.g. `Depends()`) with different OAuth2 scopes (#2945)
3 years ago
test_dependency_class.py
🔧 Add Flake8 linting (#1774)
5 years ago
test_dependency_contextmanager.py
🐛 Fix unhandled growing memory for internal server errors, refactor dependencies with `yield` and `except` to require raising again as in regular Python (#11191)
1 year ago
test_dependency_contextvars.py
✨ Update internal `AsyncExitStack` to fix context for dependencies with `yield` (#4575)
3 years ago
test_dependency_duplicates.py
✨ Add support for Pydantic's 2.7 new deprecated Field parameter, remove URL from validation errors response (#11461)
12 months ago
test_dependency_normal_exceptions.py
🐛 Fix unhandled growing memory for internal server errors, refactor dependencies with `yield` and `except` to require raising again as in regular Python (#11191)
1 year ago
test_dependency_overrides.py
✨ Add support for Pydantic's 2.7 new deprecated Field parameter, remove URL from validation errors response (#11461)
12 months ago
test_dependency_security_overrides.py
🐛 Fix testing security scopes when using dependency overrides (#1549)
5 years ago
test_deprecated_openapi_prefix.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_duplicate_models_openapi.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_empty_router.py
⬆️ Upgrade and fully migrate to Ruff, remove isort, includes a couple of tweaks suggested by the new version of Ruff (#9660)
2 years ago
test_enforce_once_required_parameter.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_exception_handlers.py
✨ Update internal `AsyncExitStack` to fix context for dependencies with `yield` (#4575)
3 years ago
test_extra_routes.py
✨ Add support for Pydantic v2 (#9816)
2 years ago
test_fastapi_cli.py
♻️ Add support for `pip install "fastapi[standard]"` with standard dependencies and `python -m fastapi` (#11935)
8 months ago
test_filter_pydantic_sub_model_pv2.py
✨ Add support for Pydantic's 2.7 new deprecated Field parameter, remove URL from validation errors response (#11461)
12 months ago
test_forms_from_non_typing_sequences.py
✨ Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. (#4906)
3 years ago
test_generate_unique_id_function.py
✅ Refactor tests for duplicate operation ID generation for compatibility with other tools running the FastAPI test suite (#10876)
1 year ago
test_generic_parameterless_depends.py
🐛 Fix parameterless `Depends()` with generics (#9479)
1 year ago
test_get_request_body.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_http_connection_injection.py
✨ Add support for injecting HTTPConnection (#1827)
5 years ago
test_include_route.py
✅ Improve test debugging (#1222)
5 years ago
test_include_router_defaults_overrides.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_infer_param_optionality.py
✨ Add support for Pydantic v2 (#9816)
2 years ago
test_inherited_custom_class.py
✨ Add support for Pydantic v2 (#9816)
2 years ago
test_invalid_path_param.py
🐛 Fix path and query parameters receiving dict as valid (#287)
6 years ago
test_invalid_sequence_param.py
✨ Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. (#4906)
3 years ago
test_jsonable_encoder.py
🐛 Fix support for query parameters with list types, handle JSON encoding Pydantic `UndefinedType` (#9929)
12 months ago
test_local_docs.py
✨ Improve type annotations, add support for mypy --strict, internally and for external packages (#2547)
4 years ago
test_multi_body_errors.py
✨ Add support for Pydantic's 2.7 new deprecated Field parameter, remove URL from validation errors response (#11461)
12 months ago
test_multi_query_errors.py
✨ Add support for Pydantic's 2.7 new deprecated Field parameter, remove URL from validation errors response (#11461)
12 months ago
test_multipart_installation.py
✨ Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. (#4906)
3 years ago
test_no_swagger_ui_redirect.py
✅ Improve test debugging (#1222)
5 years ago
test_openapi_examples.py
👷 Adopt Ruff format (#10517)
1 year ago
test_openapi_query_parameter_extension.py
✨ Add support for Pydantic v2 (#9816)
2 years ago
test_openapi_route_extensions.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_openapi_separate_input_output_schemas.py
⬆️ Upgrade compatibility with Pydantic v2.4, new renamed functions and JSON Schema input/output models with default values (#10344)
2 years ago
test_openapi_servers.py
✨ Add support for Pydantic v2 (#9816)
2 years ago
test_operations_signatures.py
✨ Add include, exclude, and by_alias to path operation methods (#264)
6 years ago
test_orjson_response_class.py
✨ Update `ORJSONResponse` to support non `str` keys and serializing Numpy arrays (#3892)
3 years ago
test_param_class.py
✨ Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. (#4906)
3 years ago
test_param_in_path_and_dependency.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_param_include_in_schema.py
⬆️ Upgrade configuration for Ruff v0.2.0 (#11075)
1 year ago
test_params_repr.py
✨ Add support for Pydantic v2 (#9816)
2 years ago
test_path.py
✨ Add support for Pydantic's 2.7 new deprecated Field parameter, remove URL from validation errors response (#11461)
12 months ago
test_put_no_body.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_query.py
🐛 Fix support for query parameters with list types, handle JSON encoding Pydantic `UndefinedType` (#9929)
12 months ago
test_read_with_orm_mode.py
✨ Add support for Pydantic v2 (#9816)
2 years ago
test_regex_deprecated_body.py
✨ Add support for Pydantic's 2.7 new deprecated Field parameter, remove URL from validation errors response (#11461)
12 months ago
test_regex_deprecated_params.py
✨ Add support for Pydantic's 2.7 new deprecated Field parameter, remove URL from validation errors response (#11461)
12 months ago
test_repeated_cookie_headers.py
🐛 Fix duplicated headers set by indirect dependencies (#1386)
5 years ago
test_repeated_dependency_schema.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_repeated_parameter_alias.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_reponse_set_reponse_code_empty.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_request_body_parameters_media_type.py
✨ Add support for Pydantic v2 (#9816)
2 years ago
test_required_noneable.py
✅ Add tests for required nonable parameters and body fields (#4907)
3 years ago
test_response_by_alias.py
✨ Add support for Pydantic v2 (#9816)
2 years ago
test_response_change_status_code.py
✅ Improve test debugging (#1222)
5 years ago
test_response_class_no_mediatype.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_response_code_no_body.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_response_model_as_return_annotation.py
✨ Add `ResponseValidationError` printable details, to show up in server error logs (#10078)
2 years ago
test_response_model_data_filter.py
✨ Add support for Pydantic v2 (#9816)
2 years ago
test_response_model_data_filter_no_inheritance.py
✨ Add support for Pydantic v2 (#9816)
2 years ago
test_response_model_include_exclude.py
🔧 Configure strict pytest options and update/refactor tests (#2790)
4 years ago
test_response_model_invalid.py
🐛 Admit valid types for Pydantic fields as responses models (#1017)
5 years ago
test_response_model_sub_types.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_route_scope.py
⬆️ Bump Starlette from 0.22.0 to 0.23.0 (#5739)
2 years ago
test_router_events.py
✨ Add reference (code API) docs with PEP 727, add subclass with custom docstrings for `BackgroundTasks`, refactor docs structure (#10392)
1 year ago
test_router_prefix_with_template.py
✅ Improve test debugging (#1222)
5 years ago
test_router_redirect_slashes.py
✨ Add allow disabling `redirect_slashes` at the FastAPI app level (#3432)
2 years ago
test_schema_extra_examples.py
👷 Adopt Ruff format (#10517)
1 year ago
test_security_api_key_cookie.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_api_key_cookie_description.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_api_key_cookie_optional.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_api_key_header.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_api_key_header_description.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_api_key_header_optional.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_api_key_query.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_api_key_query_description.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_api_key_query_optional.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_http_base.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_http_base_description.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_http_base_optional.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_http_basic_optional.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_http_basic_realm.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_http_basic_realm_description.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_http_bearer.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_http_bearer_description.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_http_bearer_optional.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_http_digest.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_http_digest_description.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_http_digest_optional.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_oauth2.py
✨ Add support for Pydantic's 2.7 new deprecated Field parameter, remove URL from validation errors response (#11461)
12 months ago
test_security_oauth2_authorization_code_bearer.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_oauth2_authorization_code_bearer_description.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_oauth2_optional.py
✨ Add support for Pydantic's 2.7 new deprecated Field parameter, remove URL from validation errors response (#11461)
12 months ago
test_security_oauth2_optional_description.py
✨ Add support for Pydantic's 2.7 new deprecated Field parameter, remove URL from validation errors response (#11461)
12 months ago
test_security_oauth2_password_bearer_optional.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_oauth2_password_bearer_optional_description.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_openid_connect.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_openid_connect_description.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_security_openid_connect_optional.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_serialize_response.py
🎨 Add typing.Optional to variables that accept None as value (#1731)
5 years ago
test_serialize_response_dataclass.py
🐛 Fix `jsonable_encoder` for dataclasses with pydantic-compatible fields (#3607)
3 years ago
test_serialize_response_model.py
✨ Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. (#4906)
3 years ago
test_skip_defaults.py
✨ Add support for Pydantic v2 (#9816)
2 years ago
test_starlette_exception.py
✨ Add support for OpenAPI 3.1.0 (#9770)
2 years ago
test_starlette_urlconvertors.py
⬆ Bump Starlette to version `0.22.0` to fix bad encoding for query parameters in `TestClient` (#5659)
2 years ago
test_sub_callbacks.py
✨ Add support for Pydantic v2 (#9816)
2 years ago
test_swagger_ui_init_oauth.py
🔧 Add Flake8 linting (#1774)
5 years ago
test_tuples.py
✨ Add support for Pydantic v2 (#9816)
2 years ago
test_typing_python39.py
📝 Update all docs to use `Annotated` as the main recommendation, with new examples and tests (#9268)
2 years ago
test_union_body.py
✨ Add support for Pydantic v2 (#9816)
2 years ago
test_union_inherited_body.py
✨ Add support for Pydantic v2 (#9816)
2 years ago
test_validate_response.py
✨ Add support for Pydantic v2 (#9816)
2 years ago
test_validate_response_dataclass.py
✨ Add support for Pydantic v2 (#9816)
2 years ago
test_webhooks_security.py
✏️ Fix typos in emoji docs and in some source examples (#10438)
1 year ago
test_ws_dependencies.py
✨ Add support for `dependencies` in WebSocket routes (#4534)
2 years ago
test_ws_router.py
✨ Add exception handler for `WebSocketRequestValidationError` (which also allows to override it) (#6030)
2 years ago
utils.py
✨ Add support for Pydantic v2 (#9816)
2 years ago