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.
Sebastián Ramírez
3f9f4a0f8f
✨ Add dependencies with yield (used as context managers) ( #595 )
* ➕ Add development/testing dependencies for Python 3.6
* ✨ Add concurrency submodule with contextmanager_in_threadpool
* ✨ Add AsyncExitStack to ASGI scope in FastAPI app call
* ✨ Use async stack for contextmanager-able dependencies
including running in threadpool sync dependencies
* ✅ Add tests for contextmanager dependencies
including internal raise checks when exceptions should be handled and when not
* ✅ Add test for fake asynccontextmanager raiser
* 🐛 Fix mypy errors and coverage
* 🔇 Remove development logs and prints
* ✅ Add tests for sub-contextmanagers, background tasks, and sync functions
* 🐛 Fix mypy errors for Python 3.7
* 💬 Fix error texts for clarity
* 📝 Add docs for dependencies with yield
* ✨ Update SQL with SQLAlchemy tutorial to use dependencies with yield
and add an alternative with a middleware (from the old tutorial)
* ✅ Update SQL tests to remove DB file during the same tests
* ✅ Add tests for example with middleware
as a copy from the tests with dependencies with yield, removing the DB in the tests
* ✏️ Fix typos with suggestions from code review
Co-Authored-By: dmontagu <[email protected] >
6 years ago
..
test_additional_responses
✨ Use default response status reasons in additional responses (#313)
6 years ago
test_additional_status_codes
✨ Add docs about responses with additional status codes (#156)
6 years ago
test_application_configuration
🎨 Improve automatic naming of path operations in API docs (#155)
6 years ago
test_async_sql_databases
🏗️ Fix same function names in different modules with composite bodies (#347)
6 years ago
test_background_tasks
✨ Add support for BackgroundTasks parameters (#103)
6 years ago
test_bigger_applications
✨ Add parameter dependencies to path operation decorators and include_router (#235)
6 years ago
test_body
🎨 Improve automatic naming of path operations in API docs (#155)
6 years ago
test_body_multiple_params
🏗️ Fix same function names in different modules with composite bodies (#347)
6 years ago
test_body_nested_models
✨ Implement support for Pydantic's ORM mode (#322)
6 years ago
test_body_schema
🏗️ Fix same function names in different modules with composite bodies (#347)
6 years ago
test_body_updates
✨ Add include, exclude, and by_alias to path operation methods (#264)
6 years ago
test_cookie_params
🎨 Improve automatic naming of path operations in API docs (#155)
6 years ago
test_custom_request_and_route
✨ Add better support for request body access/manipulation with custom classes (#589)
6 years ago
test_custom_response
🎨 Improve automatic naming of path operations in API docs (#155)
6 years ago
test_dependencies
✨ Add parameter dependencies to path operation decorators and include_router (#235)
6 years ago
test_events
🎨 Improve automatic naming of path operations in API docs (#155)
6 years ago
test_extending_openapi
🎨 Improve automatic naming of path operations in API docs (#155)
6 years ago
test_extra_data_types
🏗️ Fix same function names in different modules with composite bodies (#347)
6 years ago
test_extra_models
🏗️ Fix same function names in different modules with composite bodies (#347)
6 years ago
test_first_steps
🎨 Improve automatic naming of path operations in API docs (#155)
6 years ago
test_handling_errors
⬆️ Upgrade support to Pydantic version 0.32.2 (breaking change) (#463)
6 years ago
test_header_params
🎨 Improve automatic naming of path operations in API docs (#155)
6 years ago
test_path_operation_advanced_configurations
✨ Allow docstrings to be truncated before being used for OpenAPI (#556)
6 years ago
test_path_operation_configurations
✨ Upgrade docstring Markdown parsing (#163)
6 years ago
test_path_params
⬆️ Upgrade support to Pydantic version 0.32.2 (breaking change) (#463)
6 years ago
test_query_params
✨ Refactor param extraction using Pydantic Field (#278)
6 years ago
test_query_params_str_validations
⬆️ Upgrade Pydantic to 0.28 (#320)
6 years ago
test_request_files
🏗️ Fix same function names in different modules with composite bodies (#347)
6 years ago
test_request_forms
🏗️ Fix same function names in different modules with composite bodies (#347)
6 years ago
test_request_forms_and_files
🏗️ Fix same function names in different modules with composite bodies (#347)
6 years ago
test_response_change_status_code
✨ Add support for Response parameters to set headers, cookies, and status codes (#294)
6 years ago
test_response_cookies
✨ Add support for Response parameters to set headers, cookies, and status codes (#294)
6 years ago
test_response_headers
✨ Add support for Response parameters to set headers, cookies, and status codes (#294)
6 years ago
test_response_model
✨ Add include, exclude, and by_alias to path operation methods (#264)
6 years ago
test_security
🏗️ Fix same function names in different modules with composite bodies (#347)
6 years ago
test_sql_databases
✨ Add dependencies with yield (used as context managers) (#595)
6 years ago
test_sub_applications
🎨 Improve automatic naming of path operations in API docs (#155)
6 years ago
test_templates
✨ Add docs and tests for Jinja2 templates (#186)
6 years ago
test_testing
🎨 Improve automatic naming of path operations in API docs (#155)
6 years ago
test_testing_dependencies
✨ Implement dependency overrides for testing (#291)
6 years ago
test_websockets
✨ Add support for WebSockets with dependencies, params, etc #166 (#178)
6 years ago
__init__.py
♻️ Re-format tutorials, files names and tests
6 years ago