Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 659 for tutorial002_py39 (0.07 sec)

  1. tests/test_tutorial/test_request_form_models/test_tutorial002.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(
        name="client",
        params=[
            "tutorial002_py39",
            "tutorial002_an_py39",
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.request_form_models.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    def test_post_body_form(client: TestClient):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body_updates/test_tutorial002.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial002_py39"),
            pytest.param("tutorial002_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.body_updates.{request.param}")
    
        client = TestClient(mod.app)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_cookie_param_models/test_tutorial002.py

    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from tests.utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial002_py39"),
            pytest.param("tutorial002_py310", marks=[needs_py310]),
            pytest.param("tutorial002_an_py39"),
            pytest.param("tutorial002_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
    - 6.3K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/handling-errors.md

    Sie werden es wahrscheinlich nicht direkt in Ihrem Code verwenden müssen.
    
    Aber falls Sie es für ein fortgeschrittenes Szenario benötigen, können Sie benutzerdefinierte Header hinzufügen:
    
    {* ../../docs_src/handling_errors/tutorial002_py39.py hl[14] *}
    
    ## Benutzerdefinierte Exceptionhandler installieren { #install-custom-exception-handlers }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  5. docs/pt/docs/advanced/response-directly.md

    Você pode colocar o seu conteúdo XML em uma string, colocar em uma `Response`, e retorná-lo:
    
    {* ../../docs_src/response_directly/tutorial002_py39.py hl[1,18] *}
    
    ## Notas { #notes }
    
    Quando você retorna uma `Response` diretamente os dados não são validados, convertidos (serializados) ou documentados automaticamente.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/metadata.md

    Sie können das aber mit dem Parameter `openapi_url` konfigurieren.
    
    Um beispielsweise festzulegen, dass es unter `/api/v1/openapi.json` bereitgestellt wird:
    
    {* ../../docs_src/metadata/tutorial002_py39.py hl[3] *}
    
    Wenn Sie das OpenAPI-Schema vollständig deaktivieren möchten, können Sie `openapi_url=None` festlegen, wodurch auch die Dokumentationsbenutzeroberflächen deaktiviert werden, die es verwenden.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  7. docs/es/docs/tutorial/metadata.md

    Pero puedes configurarlo con el parámetro `openapi_url`.
    
    Por ejemplo, para configurarlo para que se sirva en `/api/v1/openapi.json`:
    
    {* ../../docs_src/metadata/tutorial002_py39.py hl[3] *}
    
    Si quieres deshabilitar el esquema OpenAPI completamente, puedes establecer `openapi_url=None`, eso también deshabilitará las interfaces de usuario de documentación que lo usan.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_header_param_models/test_tutorial002.py

    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from tests.utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial002_py39"),
            pytest.param("tutorial002_py310", marks=[needs_py310]),
            pytest.param("tutorial002_an_py39"),
            pytest.param("tutorial002_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
    - 7.2K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/response-status-code.md

    {* ../../docs_src/response_status_code/tutorial001_py39.py hl[6] *}
    
    `201` ist der Statuscode für „Created“ („Erzeugt“).
    
    Aber Sie müssen sich nicht merken, was jeder dieser Codes bedeutet.
    
    Sie können die Annehmlichkeit von Variablen aus `fastapi.status` nutzen.
    
    {* ../../docs_src/response_status_code/tutorial002_py39.py hl[1,6] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  10. docs/ru/docs/tutorial/response-status-code.md

    Рассмотрим предыдущий пример еще раз:
    
    {* ../../docs_src/response_status_code/tutorial001_py39.py hl[6] *}
    
    `201` – это код статуса "Создано".
    
    Но вам не обязательно запоминать, что означает каждый из этих кодов.
    
    Для удобства вы можете использовать переменные из `fastapi.status`.
    
    {* ../../docs_src/response_status_code/tutorial002_py39.py hl[1,6] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.1K bytes
    - Viewed (0)
Back to top