package info (click to toggle)
fastapi 0.118.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,212 kB
  • sloc: python: 69,848; javascript: 369; sh: 18; makefile: 17

Folder: tests

d .. (parent)
d d rwxr-xr-x 101 test_filter_pydantic_sub_model
d d rwxr-xr-x 69 test_modules_same_name_body
d d rwxr-xr-x 4,096 test_tutorial
d d rwxr-xr-x 95 test_validate_response_recursive
- - rw-r--r-- 0 __init__.py
- - rw-r--r-- 4,609 main.py
- - rw-r--r-- 3,688 test_additional_properties.py
- - rw-r--r-- 4,301 test_additional_properties_bool.py
- - rw-r--r-- 1,207 test_additional_response_extra.py
- - rw-r--r-- 1,117 test_additional_responses_bad.py
- - rw-r--r-- 5,895 test_additional_responses_custom_model_in_callback.py
- - rw-r--r-- 2,974 test_additional_responses_custom_validationerror.py
- - rw-r--r-- 2,882 test_additional_responses_default_validationerror.py
- - rw-r--r-- 3,560 test_additional_responses_response_class.py
- - rw-r--r-- 5,229 test_additional_responses_router.py
- - rw-r--r-- 1,833 test_allow_inf_nan_in_enforcing.py
- - rw-r--r-- 2,148 test_ambiguous_params.py
- - rw-r--r-- 10,493 test_annotated.py
- - rw-r--r-- 53,642 test_application.py
- - rw-r--r-- 457 test_callable_endpoint.py
- - rw-r--r-- 4,782 test_compat.py
- - rw-r--r-- 3,115 test_computed_fields.py
- - rw-r--r-- 2,892 test_custom_middleware_exception.py
- - rw-r--r-- 3,131 test_custom_route_class.py
- - rw-r--r-- 1,725 test_custom_schema_fields.py
- - rw-r--r-- 1,091 test_custom_swagger_ui_redirect.py
- - rw-r--r-- 2,026 test_datastructures.py
- - rw-r--r-- 1,604 test_datetime_custom_encoder.py
- - rw-r--r-- 5,365 test_default_response_class.py
- - rw-r--r-- 5,117 test_default_response_class_router.py
- - rw-r--r-- 1,803 test_dependency_after_yield_raise.py
- - rw-r--r-- 3,314 test_dependency_after_yield_streaming.py
- - rw-r--r-- 2,007 test_dependency_after_yield_websockets.py
- - rw-r--r-- 2,787 test_dependency_cache.py
- - rw-r--r-- 3,379 test_dependency_class.py
- - rw-r--r-- 11,787 test_dependency_contextmanager.py
- - rw-r--r-- 1,560 test_dependency_contextvars.py
- - rw-r--r-- 8,577 test_dependency_duplicates.py
- - rw-r--r-- 15,816 test_dependency_overrides.py
- - rw-r--r-- 1,463 test_dependency_security_overrides.py
- - rw-r--r-- 1,961 test_dependency_yield_except_httpexception.py
- - rw-r--r-- 1,193 test_deprecated_openapi_prefix.py
- - rw-r--r-- 2,159 test_duplicate_models_openapi.py
- - rw-r--r-- 805 test_empty_router.py
- - rw-r--r-- 3,416 test_enforce_once_required_parameter.py
- - rw-r--r-- 2,504 test_exception_handlers.py
- - rw-r--r-- 14,029 test_extra_routes.py
- - rw-r--r-- 799 test_fastapi_cli.py
- - rw-r--r-- 2,339 test_file_and_form_order_issue_9116.py
- - rw-r--r-- 6,461 test_filter_pydantic_sub_model_pv2.py
- - rw-r--r-- 1,202 test_forms_from_non_typing_sequences.py
- - rw-r--r-- 3,576 test_forms_single_model.py
- - rw-r--r-- 3,589 test_forms_single_param.py
- - rw-r--r-- 68,299 test_generate_unique_id_function.py
- - rw-r--r-- 1,875 test_generic_parameterless_depends.py
- - rw-r--r-- 5,845 test_get_model_definitions_formfeed_escape.py
- - rw-r--r-- 3,744 test_get_request_body.py
- - rw-r--r-- 972 test_http_connection_injection.py
- - rw-r--r-- 496 test_include_route.py
- - rw-r--r-- 367,192 test_include_router_defaults_overrides.py
- - rw-r--r-- 13,619 test_infer_param_optionality.py
- - rw-r--r-- 3,093 test_inherited_custom_class.py
- - rw-r--r-- 1,704 test_invalid_path_param.py
- - rw-r--r-- 1,248 test_invalid_sequence_param.py
- - rw-r--r-- 9,326 test_jsonable_encoder.py
- - rw-r--r-- 2,506 test_local_docs.py
- - rw-r--r-- 8,267 test_multi_body_errors.py
- - rw-r--r-- 4,610 test_multi_query_errors.py
- - rw-r--r-- 5,809 test_multipart_installation.py
- - rw-r--r-- 786 test_no_swagger_ui_redirect.py
- - rw-r--r-- 18,124 test_openapi_examples.py
- - rw-r--r-- 660 test_openapi_model_description_trim_on_formfeed.py
- - rw-r--r-- 4,847 test_openapi_query_parameter_extension.py
- - rw-r--r-- 1,133 test_openapi_route_extensions.py
- - rw-r--r-- 736 test_openapi_schema_type.py
- - rw-r--r-- 20,167 test_openapi_separate_input_output_schemas.py
- - rw-r--r-- 2,001 test_openapi_servers.py
- - rw-r--r-- 934 test_operations_signatures.py
- - rw-r--r-- 562 test_orjson_response_class.py
- - rw-r--r-- 636 test_param_class.py
- - rw-r--r-- 3,137 test_param_in_path_and_dependency.py
- - rw-r--r-- 7,611 test_param_include_in_schema.py
- - rw-r--r-- 3,414 test_params_repr.py
- - rw-r--r-- 35,209 test_path.py
- - rw-r--r-- 3,362 test_put_no_body.py
- - rw-r--r-- 11,638 test_query.py
- - rw-r--r-- 2,415 test_read_with_orm_mode.py
- - rw-r--r-- 6,344 test_regex_deprecated_body.py
- - rw-r--r-- 5,595 test_regex_deprecated_params.py
- - rw-r--r-- 792 test_repeated_cookie_headers.py
- - rw-r--r-- 3,239 test_repeated_dependency_schema.py
- - rw-r--r-- 3,745 test_repeated_parameter_alias.py
- - rw-r--r-- 3,208 test_reponse_set_reponse_code_empty.py
- - rw-r--r-- 6,509 test_request_body_parameters_media_type.py
- - rw-r--r-- 1,530 test_required_noneable.py
- - rw-r--r-- 11,379 test_response_by_alias.py
- - rw-r--r-- 589 test_response_change_status_code.py
- - rw-r--r-- 3,415 test_response_class_no_mediatype.py
- - rw-r--r-- 3,315 test_response_code_no_body.py
- - rw-r--r-- 48,837 test_response_model_as_return_annotation.py
- - rw-r--r-- 1,726 test_response_model_data_filter.py
- - rw-r--r-- 1,746 test_response_model_data_filter_no_inheritance.py
- - rw-r--r-- 1,264 test_response_model_default_factory.py
- - rw-r--r-- 4,118 test_response_model_include_exclude.py
- - rw-r--r-- 1,124 test_response_model_invalid.py
- - rw-r--r-- 5,379 test_response_model_sub_types.py
- - rw-r--r-- 431 test_return_none_stringified_annotations.py
- - rw-r--r-- 1,530 test_route_scope.py
- - rw-r--r-- 7,477 test_router_events.py
- - rw-r--r-- 484 test_router_prefix_with_template.py
- - rw-r--r-- 974 test_router_redirect_slashes.py
- - rw-r--r-- 38,576 test_schema_extra_examples.py
- - rw-r--r-- 1,944 test_security_api_key_cookie.py
- - rw-r--r-- 2,112 test_security_api_key_cookie_description.py
- - rw-r--r-- 2,146 test_security_api_key_cookie_optional.py
- - rw-r--r-- 1,884 test_security_api_key_header.py
- - rw-r--r-- 2,052 test_security_api_key_header_description.py
- - rw-r--r-- 2,082 test_security_api_key_header_optional.py
- - rw-r--r-- 1,863 test_security_api_key_query.py
- - rw-r--r-- 2,023 test_security_api_key_query_description.py
- - rw-r--r-- 2,061 test_security_api_key_query_optional.py
- - rw-r--r-- 1,787 test_security_http_base.py
- - rw-r--r-- 1,973 test_security_http_base_description.py
- - rw-r--r-- 1,932 test_security_http_base_optional.py
- - rw-r--r-- 2,671 test_security_http_basic_optional.py
- - rw-r--r-- 2,654 test_security_http_basic_realm.py
- - rw-r--r-- 2,830 test_security_http_basic_realm_description.py
- - rw-r--r-- 2,065 test_security_http_bearer.py
- - rw-r--r-- 2,255 test_security_http_bearer_description.py
- - rw-r--r-- 2,194 test_security_http_bearer_optional.py
- - rw-r--r-- 2,090 test_security_http_digest.py
- - rw-r--r-- 2,266 test_security_http_digest_description.py
- - rw-r--r-- 2,219 test_security_http_digest_optional.py
- - rw-r--r-- 11,306 test_security_oauth2.py
- - rw-r--r-- 2,338 test_security_oauth2_authorization_code_bearer.py
- - rw-r--r-- 2,442 test_security_oauth2_authorization_code_bearer_description.py
- - rw-r--r-- 11,347 test_security_oauth2_optional.py
- - rw-r--r-- 11,487 test_security_oauth2_optional_description.py
- - rw-r--r-- 2,147 test_security_oauth2_password_bearer_optional.py
- - rw-r--r-- 2,289 test_security_oauth2_password_bearer_optional_description.py
- - rw-r--r-- 2,290 test_security_openid_connect.py
- - rw-r--r-- 2,409 test_security_openid_connect_description.py
- - rw-r--r-- 2,488 test_security_openid_connect_optional.py
- - rw-r--r-- 1,414 test_serialize_response.py
- - rw-r--r-- 4,998 test_serialize_response_dataclass.py
- - rw-r--r-- 4,276 test_serialize_response_model.py
- - rw-r--r-- 2,071 test_skip_defaults.py
- - rw-r--r-- 7,550 test_starlette_exception.py
- - rw-r--r-- 1,710 test_starlette_urlconvertors.py
- - rw-r--r-- 14,142 test_sub_callbacks.py
- - rw-r--r-- 718 test_swagger_ui_init_oauth.py
- - rw-r--r-- 12,068 test_tuples.py
- - rw-r--r-- 709 test_typing_python39.py
- - rw-r--r-- 4,748 test_union_body.py
- - rw-r--r-- 5,319 test_union_forms.py
- - rw-r--r-- 5,311 test_union_inherited_body.py
- - rw-r--r-- 2,031 test_validate_response.py
- - rw-r--r-- 1,208 test_validate_response_dataclass.py
- - rw-r--r-- 4,667 test_webhooks_security.py
- - rw-r--r-- 2,199 test_ws_dependencies.py
- - rw-r--r-- 7,651 test_ws_router.py
- - rw-r--r-- 1,097 utils.py