fastapi/tests
Yogish HG 5d4179b451
Merge 18479bef52 into 272204c0c7
2025-12-16 21:07:32 +00:00
..
test_filter_pydantic_sub_model
test_modules_same_name_body
test_pydantic_v1_v2_multifile
test_request_params
test_tutorial
test_validate_response_recursive Simplify tests for `validate_response_recursive` (#13507) 2025-06-17 12:24:10 +02:00
__init__.py
forward_reference_type.py
main.py
test_additional_properties.py
test_additional_properties_bool.py
test_additional_response_extra.py Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_additional_responses_bad.py Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_additional_responses_custom_model_in_callback.py
test_additional_responses_custom_validationerror.py
test_additional_responses_default_validationerror.py
test_additional_responses_response_class.py
test_additional_responses_router.py
test_allow_inf_nan_in_enforcing.py
test_ambiguous_params.py
test_annotated.py
test_application.py
test_arbitrary_types.py
test_callable_endpoint.py
test_compat.py 🐛 Fix optional sequence handling with new union syntax from Python 3.10 (#14430) 2025-12-02 16:59:38 +00:00
test_compat_params_v1.py Add support for `from pydantic.v1 import BaseModel`, mixed Pydantic v1 and v2 models in the same app (#14168) 2025-10-11 18:45:54 +02:00
test_computed_fields.py
test_custom_middleware_exception.py
test_custom_route_class.py
test_custom_schema_fields.py
test_custom_swagger_ui_redirect.py
test_datastructures.py
test_datetime_custom_encoder.py
test_default_response_class.py
test_default_response_class_router.py
test_dependency_after_yield_raise.py
test_dependency_after_yield_streaming.py 🐛 Fix support for `StreamingResponse`s with dependencies with `yield` or `UploadFile`s, close after the response is done (#14099) 2025-09-29 05:29:38 +02:00
test_dependency_after_yield_websockets.py 🐛 Fix support for `StreamingResponse`s with dependencies with `yield` or `UploadFile`s, close after the response is done (#14099) 2025-09-29 05:29:38 +02:00
test_dependency_cache.py
test_dependency_class.py
test_dependency_contextmanager.py
test_dependency_contextvars.py
test_dependency_duplicates.py
test_dependency_overrides.py
test_dependency_paramless.py
test_dependency_partial.py
test_dependency_security_overrides.py
test_dependency_wrapped.py
test_dependency_yield_except_httpexception.py
test_dependency_yield_scope.py
test_dependency_yield_scope_websockets.py
test_depends_hashable.py
test_deprecated_openapi_prefix.py
test_duplicate_models_openapi.py
test_empty_router.py
test_enforce_once_required_parameter.py
test_exception_handlers.py
test_extra_routes.py
test_fastapi_cli.py
test_file_and_form_order_issue_9116.py
test_filter_pydantic_sub_model_pv2.py
test_form_default.py
test_forms_from_non_typing_sequences.py
test_forms_single_model.py
test_forms_single_param.py
test_generate_unique_id_function.py
test_generic_parameterless_depends.py
test_get_model_definitions_formfeed_escape.py
test_get_request_body.py Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_http_connection_injection.py
test_include_route.py
test_include_router_defaults_overrides.py
test_infer_param_optionality.py
test_inherited_custom_class.py
test_invalid_path_param.py
test_invalid_sequence_param.py
test_jsonable_encoder.py
test_local_docs.py
test_multi_body_errors.py
test_multi_query_errors.py
test_multipart_installation.py
test_no_schema_split.py
test_no_swagger_ui_redirect.py
test_openapi_examples.py
test_openapi_model_description_trim_on_formfeed.py
test_openapi_query_parameter_extension.py
test_openapi_route_extensions.py
test_openapi_schema_type.py
test_openapi_separate_input_output_schemas.py
test_openapi_servers.py
test_operations_signatures.py
test_optional_file_list.py
test_orjson_response_class.py
test_param_class.py
test_param_in_path_and_dependency.py
test_param_include_in_schema.py
test_params_repr.py ♻️ Refactor internals of dependencies, simplify using dataclasses (#14254) 2025-10-30 05:51:50 +01:00
test_path.py
test_put_no_body.py
test_pydantic_v1_v2_01.py
test_pydantic_v1_v2_list.py
test_pydantic_v1_v2_mixed.py
test_pydantic_v1_v2_noneable.py
test_pydanticv2_dataclasses_uuid_stringified_annotations.py
test_query.py
test_query_cookie_header_model_extra_params.py
test_query_method.py
test_read_with_orm_mode.py
test_regex_deprecated_body.py
test_regex_deprecated_params.py
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
test_repeated_parameter_alias.py
test_reponse_set_reponse_code_empty.py Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_request_body_parameters_media_type.py
test_request_param_model_by_alias.py
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 support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_response_change_status_code.py
test_response_class_no_mediatype.py
test_response_code_no_body.py Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_response_model_as_return_annotation.py
test_response_model_data_filter.py
test_response_model_data_filter_no_inheritance.py
test_response_model_default_factory.py ️ Fix `default_factory` for response model field with Pydantic V1 (#9704) 2025-09-20 20:51:40 +02:00
test_response_model_include_exclude.py
test_response_model_invalid.py
test_response_model_sub_types.py
test_return_none_stringified_annotations.py
test_route_scope.py 🐛 Fix support for `StreamingResponse`s with dependencies with `yield` or `UploadFile`s, close after the response is done (#14099) 2025-09-29 05:29:38 +02:00
test_router_events.py
test_router_prefix_with_template.py
test_router_redirect_slashes.py
test_schema_compat_pydantic_v2.py
test_schema_extra_examples.py
test_schema_ref_pydantic_v2.py
test_security_api_key_cookie.py
test_security_api_key_cookie_description.py
test_security_api_key_cookie_optional.py
test_security_api_key_header.py
test_security_api_key_header_description.py
test_security_api_key_header_optional.py
test_security_api_key_query.py
test_security_api_key_query_description.py
test_security_api_key_query_optional.py
test_security_http_base.py 🐛 Use `401` status code in security classes when credentials are missing (#13786) 2025-11-24 20:03:06 +01:00
test_security_http_base_description.py 🐛 Use `401` status code in security classes when credentials are missing (#13786) 2025-11-24 20:03:06 +01:00
test_security_http_base_optional.py Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_security_http_basic_optional.py
test_security_http_basic_realm.py
test_security_http_basic_realm_description.py
test_security_http_bearer.py 🐛 Use `401` status code in security classes when credentials are missing (#13786) 2025-11-24 20:03:06 +01:00
test_security_http_bearer_description.py 🐛 Use `401` status code in security classes when credentials are missing (#13786) 2025-11-24 20:03:06 +01:00
test_security_http_bearer_optional.py Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_security_http_digest.py
test_security_http_digest_description.py 🐛 Use `401` status code in security classes when credentials are missing (#13786) 2025-11-24 20:03:06 +01:00
test_security_http_digest_optional.py 🐛 Ensure that `HTTPDigest` only raises an exception when `auto_error is True` (#2939) 2025-02-27 13:29:20 +01:00
test_security_oauth2.py
test_security_oauth2_authorization_code_bearer.py
test_security_oauth2_authorization_code_bearer_description.py
test_security_oauth2_authorization_code_bearer_scopes_openapi.py
test_security_oauth2_authorization_code_bearer_scopes_openapi_simple.py
test_security_oauth2_optional.py
test_security_oauth2_optional_description.py
test_security_oauth2_password_bearer_optional.py
test_security_oauth2_password_bearer_optional_description.py
test_security_openid_connect.py
test_security_openid_connect_description.py 🐛 Use `401` status code in security classes when credentials are missing (#13786) 2025-11-24 20:03:06 +01:00
test_security_openid_connect_optional.py Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_security_scopes.py
test_security_scopes_dont_propagate.py
test_security_scopes_sub_dependency.py
test_serialize_response.py
test_serialize_response_dataclass.py
test_serialize_response_model.py
test_skip_defaults.py Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_starlette_exception.py
test_starlette_urlconvertors.py
test_stringified_annotation_dependency.py
test_stringified_annotations_simple.py
test_sub_callbacks.py
test_swagger_ui_init_oauth.py
test_top_level_security_scheme_in_openapi.py
test_tuples.py
test_typing_python39.py
test_union_body.py
test_union_body_discriminator.py
test_union_body_discriminator_annotated.py
test_union_forms.py
test_union_inherited_body.py
test_validate_response.py
test_validate_response_dataclass.py
test_validation_error_context.py
test_webhooks_security.py
test_wrapped_method_forward_reference.py
test_ws_dependencies.py Add support for `dependencies` in WebSocket routes (#4534) 2023-06-11 20:35:39 +00:00
test_ws_router.py
utils.py