tests/ — fastapi Directory Structure
Directory listing for tests/ in the fastapi codebase. Contains 194 files and 5 subdirectories.
Entity Profile
Dependency Diagram
graph TD 6c7ebe6c_f3c1_f81d_e056_ae542ed4acf0["tests/"] b90dc343_19c1_545c_8fd7_93cf252c48b0["benchmarks/"] 6c7ebe6c_f3c1_f81d_e056_ae542ed4acf0 --> b90dc343_19c1_545c_8fd7_93cf252c48b0 cd4874e6_919f_c2d4_02f7_33a96cf6a9fb["test_modules_same_name_body/"] 6c7ebe6c_f3c1_f81d_e056_ae542ed4acf0 --> cd4874e6_919f_c2d4_02f7_33a96cf6a9fb bf81e470_3195_2ef0_879d_be6743680902["test_request_params/"] 6c7ebe6c_f3c1_f81d_e056_ae542ed4acf0 --> bf81e470_3195_2ef0_879d_be6743680902 71bcd662_5a78_1ece_69fa_03b5a1ea2275["test_tutorial/"] 6c7ebe6c_f3c1_f81d_e056_ae542ed4acf0 --> 71bcd662_5a78_1ece_69fa_03b5a1ea2275 fe77ed79_c090_f5cb_4454_c6234309b5f9["test_validate_response_recursive/"] 6c7ebe6c_f3c1_f81d_e056_ae542ed4acf0 --> fe77ed79_c090_f5cb_4454_c6234309b5f9 db57bb8e_a138_3ddd_aa73_f0bde04bdea1["__init__.py"] 6c7ebe6c_f3c1_f81d_e056_ae542ed4acf0 --> db57bb8e_a138_3ddd_aa73_f0bde04bdea1 a879e73b_549a_b783_7153_27886bb4ddd0["forward_reference_type.py"] 6c7ebe6c_f3c1_f81d_e056_ae542ed4acf0 --> a879e73b_549a_b783_7153_27886bb4ddd0 224633e5_139d_dee9_c17b_aeac8a2f6027["main.py"] 6c7ebe6c_f3c1_f81d_e056_ae542ed4acf0 --> 224633e5_139d_dee9_c17b_aeac8a2f6027 282c0505_addc_df54_19f4_afdc03b8dfce["test_additional_properties.py"] 6c7ebe6c_f3c1_f81d_e056_ae542ed4acf0 --> 282c0505_addc_df54_19f4_afdc03b8dfce 1f92429c_3e8b_7f2a_e7a3_71eba8fe1fbd["test_additional_properties_bool.py"] 6c7ebe6c_f3c1_f81d_e056_ae542ed4acf0 --> 1f92429c_3e8b_7f2a_e7a3_71eba8fe1fbd bd4d3106_c5f1_7cf3_dbd7_34264f9183d9["test_additional_response_extra.py"] 6c7ebe6c_f3c1_f81d_e056_ae542ed4acf0 --> bd4d3106_c5f1_7cf3_dbd7_34264f9183d9 ae4a5c9b_b18b_3b87_1e5e_7136db518ac0["test_additional_responses_bad.py"] 6c7ebe6c_f3c1_f81d_e056_ae542ed4acf0 --> ae4a5c9b_b18b_3b87_1e5e_7136db518ac0 f94fef85_5440_ee04_de4b_91d40adf6f11["test_additional_responses_custom_model_in_callback.py"] 6c7ebe6c_f3c1_f81d_e056_ae542ed4acf0 --> f94fef85_5440_ee04_de4b_91d40adf6f11 dfff6014_f006_aa5d_29b9_ef946d567ce4["test_additional_responses_custom_validationerror.py"] 6c7ebe6c_f3c1_f81d_e056_ae542ed4acf0 --> dfff6014_f006_aa5d_29b9_ef946d567ce4 style 6c7ebe6c_f3c1_f81d_e056_ae542ed4acf0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Subdirectories
Files
- __init__.py
- forward_reference_type.py
- main.py
- test_additional_properties.py
- test_additional_properties_bool.py
- test_additional_response_extra.py
- test_additional_responses_bad.py
- 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_additional_responses_union_duplicate_anyof.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
- 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
- test_dependency_after_yield_websockets.py
- 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_pep695.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
- 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_json_type.py
- test_jsonable_encoder.py
- test_list_bytes_file_order_preserved_issue_14811.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
- test_path.py
- test_put_no_body.py
- test_pydantic_v1_error.py
- test_pydanticv2_dataclasses_uuid_stringified_annotations.py
- test_query.py
- test_query_cookie_header_model_extra_params.py
- test_read_with_orm_mode.py
- test_regex_deprecated_body.py
- test_regex_deprecated_params.py
- test_repeated_cookie_headers.py
- test_repeated_dependency_schema.py
- test_repeated_parameter_alias.py
- test_reponse_set_reponse_code_empty.py
- test_request_body_parameters_media_type.py
- test_request_param_model_by_alias.py
- test_required_noneable.py
- test_response_by_alias.py
- test_response_change_status_code.py
- test_response_class_no_mediatype.py
- test_response_code_no_body.py
- test_response_dependency.py
- 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
- 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
- test_router_circular_import.py
- 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
- test_security_http_base_description.py
- test_security_http_base_optional.py
- test_security_http_basic_optional.py
- test_security_http_basic_realm.py
- test_security_http_basic_realm_description.py
- test_security_http_bearer.py
- test_security_http_bearer_description.py
- test_security_http_bearer_optional.py
- test_security_http_digest.py
- test_security_http_digest_description.py
- test_security_http_digest_optional.py
- 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
- test_security_openid_connect_optional.py
- 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
- test_starlette_exception.py
- test_starlette_urlconvertors.py
- test_stringified_annotation_dependency.py
- test_stringified_annotation_dependency_py314.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
- test_ws_router.py
- utils.py
Frequently Asked Questions
What's in the tests/ directory?
The tests/ directory contains 194 files and 5 subdirectories in the fastapi codebase.
What subdirectories does tests/ contain?
tests/ contains 5 subdirectory(ies): benchmarks, test_modules_same_name_body, test_request_params, test_tutorial, test_validate_response_recursive.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free