Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 63 for tutorial003_05_py39 (0.09 sec)

  1. docs_src/dependencies/tutorial003_an_py39.py

    Sebastián Ramírez <******@****.***> 1679142599 +0100
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 668 bytes
    - Viewed (0)
  2. docs_src/header_params/tutorial003_an_py39.py

    Sebastián Ramírez <******@****.***> 1766006759 -0800
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 234 bytes
    - Viewed (0)
  3. docs_src/request_files/tutorial001_02_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
    - 508 bytes
    - Viewed (0)
  4. docs_src/request_files/tutorial001_03_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
    - 371 bytes
    - Viewed (0)
  5. docs_src/request_files/tutorial003_an_py39.py

    Sebastián Ramírez <******@****.***> 1679142599 +0100
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 952 bytes
    - Viewed (0)
  6. docs/es/docs/tutorial/response-model.md

    El caso más común sería [devolver un Response directamente como se explica más adelante en la documentación avanzada](../advanced/response-directly.md){.internal-link target=_blank}.
    
    {* ../../docs_src/response_model/tutorial003_02_py39.py hl[8,10:11] *}
    
    Este caso simple es manejado automáticamente por FastAPI porque la anotación del tipo de retorno es la clase (o una subclase de) `Response`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.7K bytes
    - Viewed (0)
  7. pyproject.toml

    source = [
        "docs_src",
        "tests",
        "fastapi"
    ]
    relative_files = true
    context = '${CONTEXT}'
    dynamic_context = "test_function"
    omit = [
        "docs_src/response_model/tutorial003_04_py39.py",
        "docs_src/response_model/tutorial003_04_py310.py",
        "docs_src/dependencies/tutorial008_an_py39.py",  # difficult to mock
        "docs_src/dependencies/tutorial013_an_py310.py",  # temporary code example?
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_response_model/test_tutorial003_03.py

    from fastapi.testclient import TestClient
    
    from docs_src.response_model.tutorial003_03_py39 import app
    
    client = TestClient(app)
    
    
    def test_get_portal():
        response = client.get("/teleport", follow_redirects=False)
        assert response.status_code == 307, response.text
        assert response.headers["location"] == "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_response_model/test_tutorial003_04.py

    import importlib
    
    import pytest
    from fastapi.exceptions import FastAPIError
    
    from ...utils import needs_py310
    
    
    @pytest.mark.parametrize(
        "module_name",
        [
            pytest.param("tutorial003_04_py39"),
            pytest.param("tutorial003_04_py310", marks=needs_py310),
        ],
    )
    def test_invalid_response_model(module_name: str) -> None:
        with pytest.raises(FastAPIError):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 453 bytes
    - Viewed (0)
  10. tests/test_tutorial/test_response_model/test_tutorial003_01.py

    import pytest
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial003_01_py39"),
            pytest.param("tutorial003_01_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.response_model.{request.param}")
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 5.9K bytes
    - Viewed (0)
Back to top