Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for override2 (0.04 sec)

  1. tests/test_schema_extra_examples.py

        assert response.status_code == 200, response.text
    
    
    def test_openapi_schema():
        """
        Test that example overrides work:
    
        * pydantic model schema_extra is included
        * Body(example={}) overrides schema_extra in pydantic model
        * Body(examples{}) overrides Body(example={}) and schema_extra in pydantic model
        """
        app = create_app()
        client = TestClient(app)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 32.2K bytes
    - Viewed (0)
  2. pyproject.toml

    [tool.mypy]
    plugins = ["pydantic.mypy"]
    strict = true
    
    [[tool.mypy.overrides]]
    module = "fastapi.concurrency"
    warn_unused_ignores = false
    ignore_missing_imports = true
    
    [[tool.mypy.overrides]]
    module = "fastapi.tests.*"
    ignore_missing_imports = true
    check_untyped_defs = true
    
    [[tool.mypy.overrides]]
    module = "docs_src.*"
    disallow_incomplete_defs = false
    disallow_untyped_defs = false
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  3. fastapi/datastructures.py

    
    class DefaultPlaceholder:
        """
        You shouldn't use this class directly.
    
        It's used internally to recognize when a default value has been overwritten, even
        if the overridden default value was truthy.
        """
    
        def __init__(self, value: Any):
            self.value = value
    
        def __bool__(self) -> bool:
            return bool(self.value)
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  4. fastapi/routing.py

            ] = None,
            dependency_overrides_provider: Annotated[
                Optional[Any],
                Doc(
                    """
                    Only used internally by FastAPI to handle dependency overrides.
    
                    You shouldn't need to use it. It normally points to the `FastAPI` app
                    object.
                    """
                ),
            ] = None,
            route_class: Annotated[
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
  5. docs/en/docs/release-notes.md

        * PR [#292](https://github.com/tiangolo/fastapi/pull/292).
    
    * Implement dependency overrides for testing.
        * This allows using overrides/mocks of dependencies during tests.
        * New docs: [Testing Dependencies with Overrides](https://fastapi.tiangolo.com/advanced/testing-dependencies/).
        * PR [#291](https://github.com/tiangolo/fastapi/pull/291).
    
    ## 0.27.2
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:06:15 UTC 2025
    - 586.7K bytes
    - Viewed (0)
Back to top