fastapi/tests
Sebastián Ramírez b307d38897
♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890)
2020-01-18 19:07:42 +01:00
..
test_modules_same_name_body ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_tutorial ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
__init__.py Add first tests, for path and query 2018-12-08 11:56:07 +04:00
main.py Improve security utilities and add tests 2018-12-28 20:35:48 +04:00
test_additional_properties.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_additional_response_extra.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_additional_responses_bad.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_additional_responses_custom_validationerror.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_additional_responses_default_validationerror.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_additional_responses_response_class.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_additional_responses_router.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_application.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_custom_route_class.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_custom_swagger_ui_redirect.py Add swagger UI OAuth2 redirect page for implicit/code auth flows in API docs (#198) 2019-05-21 22:39:58 +04:00
test_datastructures.py Add support for UploadFile class annotations (#63) 2019-03-03 20:52:37 +04:00
test_datetime_custom_encoder.py 🐛 Fix jsonable_encoder for models with Config (#29) 2019-02-12 21:43:34 +04:00
test_default_response_class.py Add support for specifying a default_response_class (#467) 2019-09-29 16:47:35 -05:00
test_default_response_class_router.py Add support for specifying a default_response_class (#467) 2019-09-29 16:47:35 -05:00
test_dependency_cache.py Implement dependency value cache per request (#292) 2019-06-05 21:00:54 +04:00
test_dependency_class.py 🐛 Allow async class methods as dependencies (#681) 2019-11-27 20:51:30 +01:00
test_dependency_contextmanager.py Add dependencies with yield (used as context managers) (#595) 2019-10-09 13:01:58 -05:00
test_dependency_overrides.py Implement dependency overrides for testing (#291) 2019-06-05 15:43:18 +04:00
test_duplicate_models_openapi.py Add test from @dmontagu in #333 for duplicate models (#385) 2019-07-12 19:13:28 -05:00
test_empty_router.py Allow empty routed path (issue #414) (#415) 2019-08-24 19:39:48 -05:00
test_extra_routes.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_fakeasync.py Add dependencies with yield (used as context managers) (#595) 2019-10-09 13:01:58 -05:00
test_filter_pydantic_sub_model.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_forms_from_non_typing_sequences.py 🐛 Fix validating form params declared with classes (list, tuple, set, etc) (#856) 2020-01-17 12:45:55 +01:00
test_include_route.py Improve security utilities and add tests 2018-12-28 20:35:48 +04:00
test_infer_param_optionality.py Add support for Pydantic v1 and above 🎉 (#646) 2019-11-27 20:32:02 +01:00
test_inherited_custom_class.py Add support for subtypes of main types in jsonable_encoder 2020-01-08 21:50:21 +01:00
test_invalid_path_param.py 🐛 Fix path and query parameters receiving dict as valid (#287) 2019-06-03 21:59:40 +04:00
test_invalid_sequence_param.py 🐛 Fix path and query parameters receiving dict as valid (#287) 2019-06-03 21:59:40 +04:00
test_jsonable_encoder.py 🐛 Fix the usage of custom_encoder for jsonable_encoder #714 (#715) 2019-11-27 21:23:23 +01:00
test_local_docs.py Allow disabling Google fonts in ReDoc (#481) 2019-08-30 19:00:55 -05:00
test_multi_body_errors.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_multi_query_errors.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_no_swagger_ui_redirect.py Add swagger UI OAuth2 redirect page for implicit/code auth flows in API docs (#198) 2019-05-21 22:39:58 +04:00
test_operations_signatures.py Add include, exclude, and by_alias to path operation methods (#264) 2019-05-27 16:08:13 +04:00
test_param_class.py ⬆️ Add tests, fix issues and update Pydantic 2018-12-28 16:10:29 +04:00
test_path.py Add support for Pydantic v1 and above 🎉 (#646) 2019-11-27 20:32:02 +01:00
test_put_no_body.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_query.py Improve security utilities and add tests 2018-12-28 20:35:48 +04:00
test_repeated_dependency_schema.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_request_body_parameters_media_type.py 🐛 use media_type from Body params for OpenAPI requestBody (Fixes: #431) (#439) 2019-08-30 17:32:39 -05:00
test_response_change_status_code.py Add support for Response parameters to set headers, cookies, and status codes (#294) 2019-06-06 14:29:40 +04:00
test_response_class_no_mediatype.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_response_code_no_body.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_router_prefix_with_template.py Add test for templates in include_router path (#349) 2019-06-28 20:15:17 +02:00
test_security_api_key_cookie.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_security_api_key_cookie_optional.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_security_api_key_header.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_security_api_key_header_optional.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_security_api_key_query.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_security_api_key_query_optional.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_security_http_base.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_security_http_base_optional.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_security_http_basic_optional.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_security_http_basic_realm.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_security_http_bearer.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_security_http_bearer_optional.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_security_http_digest.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_security_http_digest_optional.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_security_oauth2.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_security_oauth2_authorization_code_bearer.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_security_oauth2_optional.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_security_oauth2_password_bearer_optional.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_security_openid_connect.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_security_openid_connect_optional.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_serialize_response.py Add support and tests for Pydantic dataclasses in response_model (#454) 2019-08-30 18:12:15 -05:00
test_serialize_response_dataclass.py Add support and tests for Pydantic dataclasses in response_model (#454) 2019-08-30 18:12:15 -05:00
test_skip_defaults.py Add support for Pydantic v1 and above 🎉 (#646) 2019-11-27 20:32:02 +01:00
test_starlette_exception.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_starlette_urlconvertors.py 🐛 Fix OpenAPI URL format for Starlette convertors (#234) 2019-05-16 17:55:14 +04:00
test_sub_callbacks.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_swagger_ui_init_oauth.py Add support for setting Swagger UI initOAuth configs (clientId, appName) (#499) 2019-10-03 18:41:04 -05:00
test_union_body.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_union_inherited_body.py ♻️ Update default API title from "Fast API" to "FastAPI" for consistency (#890) 2020-01-18 19:07:42 +01:00
test_validate_response.py Add support and tests for Pydantic dataclasses in response_model (#454) 2019-08-30 18:12:15 -05:00
test_validate_response_dataclass.py Add support and tests for Pydantic dataclasses in response_model (#454) 2019-08-30 18:12:15 -05:00
test_ws_router.py Add support for WebSockets with dependencies, params, etc #166 (#178) 2019-05-24 20:41:41 +04:00
utils.py 📝 Add docs for correctly using Peewee (#789) 2019-12-13 11:29:18 +01:00