Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 565 for tutorial010_py39 (0.07 sec)

  1. docs_src/custom_response/tutorial010_py39.py

    Sebastián Ramírez <******@****.***> 1766004103 -0800
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 205 bytes
    - Viewed (0)
  2. docs_src/python_types/tutorial010_py39.py

    Sebastián Ramírez <******@****.***> 1766004103 -0800
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 144 bytes
    - Viewed (0)
  3. docs_src/dependencies/tutorial010_py39.py

    Sebastián Ramírez <******@****.***> 1766004103 -0800
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 292 bytes
    - Viewed (0)
  4. docs_src/query_params_str_validations/tutorial010_py39.py

    Sebastián Ramírez <******@****.***> 1766004103 -0800
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 574 bytes
    - Viewed (0)
  5. tests/test_tutorial/test_python_types/test_tutorial010.py

    from docs_src.python_types.tutorial010_py39 import Person, get_person_name
    
    
    def test_get_person_name():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 166 bytes
    - Viewed (0)
  6. tests/test_tutorial/test_dependencies/test_tutorial010.py

    from fastapi.testclient import TestClient
    
    from docs_src.dependencies.tutorial010_py39 import get_db
    
    
    def test_get_db():
        app = FastAPI()
    
        @app.get("/")
        def read_root(c: Annotated[Any, Depends(get_db)]):
            return {"c": str(c)}
    
        client = TestClient(app)
    
        dbsession_mock = Mock()
    
        with patch(
            "docs_src.dependencies.tutorial010_py39.DBSession",
            return_value=dbsession_mock,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 688 bytes
    - Viewed (0)
  7. tests/test_tutorial/test_custom_response/test_tutorial001.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial001_py39"),
            pytest.param("tutorial010_py39"),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.custom_response.{request.param}")
        client = TestClient(mod.app)
        return client
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  8. pyproject.toml

    [tool.ruff.lint.per-file-ignores]
    "__init__.py" = ["F401"]
    "docs_src/dependencies/tutorial007_py39.py" = ["F821"]
    "docs_src/dependencies/tutorial008_py39.py" = ["F821"]
    "docs_src/dependencies/tutorial009_py39.py" = ["F821"]
    "docs_src/dependencies/tutorial010_py39.py" = ["F821"]
    "docs_src/custom_response/tutorial007_py39.py" = ["B007"]
    "docs_src/dataclasses/tutorial003_py39.py" = ["I001"]
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_query_params_str_validations/test_tutorial010.py

    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial010_py39"),
            pytest.param("tutorial010_py310", marks=needs_py310),
            pytest.param("tutorial010_an_py39"),
            pytest.param("tutorial010_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/handling-errors.md

    ## Use `HTTPException` { #use-httpexception }
    
    To return HTTP responses with errors to the client you use `HTTPException`.
    
    ### Import `HTTPException` { #import-httpexception }
    
    {* ../../docs_src/handling_errors/tutorial001_py39.py hl[1] *}
    
    ### Raise an `HTTPException` in your code { #raise-an-httpexception-in-your-code }
    
    `HTTPException` is a normal Python exception with additional data relevant for APIs.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 9K bytes
    - Viewed (0)
Back to top