You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jonathan Fulton 75c47187f3
🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791)
4 months ago
..
benchmarks Run performance tests only on Pydantic v2 (#14608) 5 months ago
test_modules_same_name_body 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_request_params 🔥 Remove test variants for Pydantic v1 in test_request_params (#14612) 5 months ago
test_tutorial 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_validate_response_recursive Drop support for Pydantic v1, keeping short temporary support for Pydantic v2's `pydantic.v1` (#14575) 6 months ago
__init__.py Add first tests, for path and query 8 years ago
forward_reference_type.py Add support for wrapped functions (e.g. `@functools.wraps()`) used with forward references (#5077) 6 months ago
main.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_additional_properties.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_additional_properties_bool.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_additional_response_extra.py Add support for OpenAPI 3.1.0 (#9770) 3 years ago
test_additional_responses_bad.py Add support for OpenAPI 3.1.0 (#9770) 3 years ago
test_additional_responses_custom_model_in_callback.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_additional_responses_custom_validationerror.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_additional_responses_default_validationerror.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_additional_responses_response_class.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_additional_responses_router.py Add support for OpenAPI 3.1.0 (#9770) 3 years ago
test_additional_responses_union_duplicate_anyof.py 🐛 Fix OpenAPI duplication of `anyOf` refs for app-level responses with specified `content` and `model` as `Union` (#14463) 4 months ago
test_allow_inf_nan_in_enforcing.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_ambiguous_params.py Drop support for Pydantic v1, keeping short temporary support for Pydantic v2's `pydantic.v1` (#14575) 6 months ago
test_annotated.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_application.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_arbitrary_types.py Drop support for Pydantic v1, keeping short temporary support for Pydantic v2's `pydantic.v1` (#14575) 6 months ago
test_callable_endpoint.py 📝 Use Optional in docs (#1644) 6 years ago
test_compat.py Drop support for `pydantic.v1` (#14609) 5 months ago
test_computed_fields.py Drop support for Pydantic v1, keeping short temporary support for Pydantic v2's `pydantic.v1` (#14575) 6 months ago
test_custom_middleware_exception.py Allow custom middlewares to raise `HTTPException`s and propagate them (#2036) 4 years ago
test_custom_route_class.py Add support for OpenAPI 3.1.0 (#9770) 3 years ago
test_custom_schema_fields.py Drop support for Pydantic v1, keeping short temporary support for Pydantic v2's `pydantic.v1` (#14575) 6 months ago
test_custom_swagger_ui_redirect.py Improve test debugging (#1222) 6 years ago
test_datastructures.py Drop support for Pydantic v1, keeping short temporary support for Pydantic v2's `pydantic.v1` (#14575) 6 months ago
test_datetime_custom_encoder.py Drop support for `pydantic.v1` (#14609) 5 months ago
test_default_response_class.py Re-export utils from Starlette (#1064) 6 years ago
test_default_response_class_router.py Re-export utils from Starlette (#1064) 6 years ago
test_dependency_after_yield_raise.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_dependency_after_yield_streaming.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_dependency_after_yield_websockets.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months 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) 4 years ago
test_dependency_class.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_dependency_contextmanager.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_dependency_contextvars.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_dependency_duplicates.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_dependency_overrides.py 🔥 Remove Pydantic v1 specific test variants (#14611) 5 months ago
test_dependency_paramless.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_dependency_partial.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_dependency_security_overrides.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_dependency_wrapped.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_dependency_yield_except_httpexception.py 🐛 Fix support for `StreamingResponse`s with dependencies with `yield` or `UploadFile`s, close after the response is done (#14099) 8 months ago
test_dependency_yield_scope.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_dependency_yield_scope_websockets.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_depends_hashable.py ♻️ Make the result of `Depends()` and `Security()` hashable, as a workaround for other tools interacting with these internal parts (#14372) 7 months ago
test_deprecated_openapi_prefix.py Add support for OpenAPI 3.1.0 (#9770) 3 years ago
test_duplicate_models_openapi.py Add support for OpenAPI 3.1.0 (#9770) 3 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) 3 years ago
test_enforce_once_required_parameter.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_exception_handlers.py 🐛 Preserve traceback when exception is raised in sync dependency with `yield` (#5823) 2 years ago
test_extra_routes.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_fastapi_cli.py 🐛 Fix Windows UnicodeEncodeError in CLI test (#14295) 6 months ago
test_file_and_form_order_issue_9116.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_filter_pydantic_sub_model_pv2.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_form_default.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_forms_from_non_typing_sequences.py Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. (#4906) 4 years ago
test_forms_single_model.py 🔥 Remove Pydantic v1 specific test variants (#14611) 5 months ago
test_forms_single_param.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_generate_unique_id_function.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_generic_parameterless_depends.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_get_model_definitions_formfeed_escape.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_get_request_body.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_http_connection_injection.py Add support for injecting HTTPConnection (#1827) 6 years ago
test_include_route.py Improve test debugging (#1222) 6 years ago
test_include_router_defaults_overrides.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_infer_param_optionality.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_inherited_custom_class.py Drop support for `pydantic.v1` (#14609) 5 months ago
test_invalid_path_param.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_invalid_sequence_param.py 🚸 Improve error message for invalid query parameter type annotations (#14479) 4 months ago
test_jsonable_encoder.py Drop support for `pydantic.v1` (#14609) 5 months ago
test_local_docs.py Improve type annotations, add support for mypy --strict, internally and for external packages (#2547) 6 years ago
test_multi_body_errors.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_multi_query_errors.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_multipart_installation.py ♻️ Update logic to import and check `python-multipart` for compatibility with newer version (#12627) 2 years ago
test_no_schema_split.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_no_swagger_ui_redirect.py Improve test debugging (#1222) 6 years ago
test_openapi_examples.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_openapi_model_description_trim_on_formfeed.py 🐛 Fix truncating the model's description with form feed (`\f`) character for Pydantic V2 (#13698) 12 months ago
test_openapi_query_parameter_extension.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_openapi_route_extensions.py Add support for OpenAPI 3.1.0 (#9770) 3 years ago
test_openapi_schema_type.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_openapi_separate_input_output_schemas.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_openapi_servers.py 🔥 Remove Pydantic v1 specific test variants (#14611) 5 months ago
test_operations_signatures.py Add include, exclude, and by_alias to path operation methods (#264) 7 years ago
test_optional_file_list.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_orjson_response_class.py Update `ORJSONResponse` to support non `str` keys and serializing Numpy arrays (#3892) 4 years ago
test_param_class.py Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. (#4906) 4 years ago
test_param_in_path_and_dependency.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_param_include_in_schema.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_params_repr.py 🔥 Remove Pydantic v1 specific test variants (#14611) 5 months ago
test_path.py 🔥 Remove Pydantic v1 specific test variants (#14611) 5 months ago
test_put_no_body.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_pydantic_v1_error.py Drop support for `pydantic.v1` (#14609) 5 months ago
test_pydanticv2_dataclasses_uuid_stringified_annotations.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_query.py 🔥 Remove Pydantic v1 specific test variants (#14611) 5 months ago
test_query_cookie_header_model_extra_params.py Drop support for Pydantic v1, keeping short temporary support for Pydantic v2's `pydantic.v1` (#14575) 6 months ago
test_read_with_orm_mode.py Drop support for `pydantic.v1` (#14609) 5 months ago
test_regex_deprecated_body.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_regex_deprecated_params.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_repeated_cookie_headers.py 🐛 Fix duplicated headers set by indirect dependencies (#1386) 6 years ago
test_repeated_dependency_schema.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_repeated_parameter_alias.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_reponse_set_reponse_code_empty.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_request_body_parameters_media_type.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_request_param_model_by_alias.py Drop support for Pydantic v1, keeping short temporary support for Pydantic v2's `pydantic.v1` (#14575) 6 months ago
test_required_noneable.py Add tests for required nonable parameters and body fields (#4907) 4 years ago
test_response_by_alias.py Drop support for Pydantic v1, keeping short temporary support for Pydantic v2's `pydantic.v1` (#14575) 6 months ago
test_response_change_status_code.py Improve test debugging (#1222) 6 years ago
test_response_class_no_mediatype.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_response_code_no_body.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_response_model_as_return_annotation.py Drop support for `pydantic.v1` (#14609) 5 months ago
test_response_model_data_filter.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_response_model_data_filter_no_inheritance.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_response_model_default_factory.py ️ Fix `default_factory` for response model field with Pydantic V1 (#9704) 9 months ago
test_response_model_include_exclude.py 🔧 Configure strict pytest options and update/refactor tests (#2790) 5 years ago
test_response_model_invalid.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_response_model_sub_types.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_return_none_stringified_annotations.py Allow `None` as return type for bodiless responses (#9425) 9 months ago
test_route_scope.py 🐛 Fix support for `StreamingResponse`s with dependencies with `yield` or `UploadFile`s, close after the response is done (#14099) 8 months ago
test_router_events.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_router_prefix_with_template.py Improve test debugging (#1222) 6 years ago
test_router_redirect_slashes.py Add allow disabling `redirect_slashes` at the FastAPI app level (#3432) 3 years ago
test_schema_compat_pydantic_v2.py Drop support for Pydantic v1, keeping short temporary support for Pydantic v2's `pydantic.v1` (#14575) 6 months ago
test_schema_extra_examples.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_schema_ref_pydantic_v2.py Drop support for Pydantic v1, keeping short temporary support for Pydantic v2's `pydantic.v1` (#14575) 6 months ago
test_security_api_key_cookie.py 🐛 Use `401` status code in security classes when credentials are missing (#13786) 6 months ago
test_security_api_key_cookie_description.py 🐛 Use `401` status code in security classes when credentials are missing (#13786) 6 months ago
test_security_api_key_cookie_optional.py Add support for OpenAPI 3.1.0 (#9770) 3 years ago
test_security_api_key_header.py 🐛 Use `401` status code in security classes when credentials are missing (#13786) 6 months ago
test_security_api_key_header_description.py 🐛 Use `401` status code in security classes when credentials are missing (#13786) 6 months ago
test_security_api_key_header_optional.py Add support for OpenAPI 3.1.0 (#9770) 3 years ago
test_security_api_key_query.py 🐛 Use `401` status code in security classes when credentials are missing (#13786) 6 months ago
test_security_api_key_query_description.py 🐛 Use `401` status code in security classes when credentials are missing (#13786) 6 months ago
test_security_api_key_query_optional.py Add support for OpenAPI 3.1.0 (#9770) 3 years ago
test_security_http_base.py 🐛 Strip whitespaces from `Authorization` header credentials (#14786) 4 months ago
test_security_http_base_description.py 🐛 Use `401` status code in security classes when credentials are missing (#13786) 6 months ago
test_security_http_base_optional.py Add support for OpenAPI 3.1.0 (#9770) 3 years ago
test_security_http_basic_optional.py 🐛 Use `401` status code in security classes when credentials are missing (#13786) 6 months ago
test_security_http_basic_realm.py 🐛 Use `401` status code in security classes when credentials are missing (#13786) 6 months ago
test_security_http_basic_realm_description.py 🐛 Use `401` status code in security classes when credentials are missing (#13786) 6 months ago
test_security_http_bearer.py 🐛 Use `401` status code in security classes when credentials are missing (#13786) 6 months ago
test_security_http_bearer_description.py 🐛 Use `401` status code in security classes when credentials are missing (#13786) 6 months ago
test_security_http_bearer_optional.py Add support for OpenAPI 3.1.0 (#9770) 3 years ago
test_security_http_digest.py 🐛 Use `401` status code in security classes when credentials are missing (#13786) 6 months ago
test_security_http_digest_description.py 🐛 Use `401` status code in security classes when credentials are missing (#13786) 6 months ago
test_security_http_digest_optional.py 🐛 Ensure that `HTTPDigest` only raises an exception when `auto_error is True` (#2939) 1 year ago
test_security_oauth2.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_security_oauth2_authorization_code_bearer.py 🐛 Strip whitespaces from `Authorization` header credentials (#14786) 4 months ago
test_security_oauth2_authorization_code_bearer_description.py Add support for OpenAPI 3.1.0 (#9770) 3 years ago
test_security_oauth2_authorization_code_bearer_scopes_openapi.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_security_oauth2_authorization_code_bearer_scopes_openapi_simple.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_security_oauth2_optional.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_security_oauth2_optional_description.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_security_oauth2_password_bearer_optional.py Add support for OpenAPI 3.1.0 (#9770) 3 years ago
test_security_oauth2_password_bearer_optional_description.py Add support for OpenAPI 3.1.0 (#9770) 3 years ago
test_security_openid_connect.py 🐛 Use `401` status code in security classes when credentials are missing (#13786) 6 months ago
test_security_openid_connect_description.py 🐛 Use `401` status code in security classes when credentials are missing (#13786) 6 months ago
test_security_openid_connect_optional.py Add support for OpenAPI 3.1.0 (#9770) 3 years ago
test_security_scopes.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_security_scopes_dont_propagate.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_security_scopes_sub_dependency.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_serialize_response.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_serialize_response_dataclass.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_serialize_response_model.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_skip_defaults.py Add support for Pydantic v2 (#9816) 3 years ago
test_starlette_exception.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_starlette_urlconvertors.py ⬆ Bump Starlette to version `0.22.0` to fix bad encoding for query parameters in `TestClient` (#5659) 4 years ago
test_stringified_annotation_dependency.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_stringified_annotation_dependency_py314.py 🐛 Fix TYPE_CHECKING annotations for Python 3.14 (PEP 649) (#14789) 4 months ago
test_stringified_annotations_simple.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_sub_callbacks.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_swagger_ui_init_oauth.py 🔧 Add Flake8 linting (#1774) 6 years ago
test_top_level_security_scheme_in_openapi.py 🐛 Use `401` status code in security classes when credentials are missing (#13786) 6 months ago
test_tuples.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_typing_python39.py 📝 Update all docs to use `Annotated` as the main recommendation, with new examples and tests (#9268) 3 years ago
test_union_body.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_union_body_discriminator.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_union_body_discriminator_annotated.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_union_forms.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_union_inherited_body.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_validate_response.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_validate_response_dataclass.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_validation_error_context.py 🚸 Improve tracebacks by adding endpoint metadata (#14306) 6 months ago
test_webhooks_security.py 🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791) 4 months ago
test_wrapped_method_forward_reference.py Add support for wrapped functions (e.g. `@functools.wraps()`) used with forward references (#5077) 6 months ago
test_ws_dependencies.py ♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
test_ws_router.py Add exception handler for `WebSocketRequestValidationError` (which also allows to override it) (#6030) 3 years ago
utils.py 🐛 Fix TYPE_CHECKING annotations for Python 3.14 (PEP 649) (#14789) 4 months ago