Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 91 - 100 of 659 for tutorial002_py39 (0.09 seconds)

  1. tests/test_tutorial/test_events/test_tutorial002.py

    import pytest
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(name="app", scope="module")
    def get_app():
        with pytest.warns(DeprecationWarning):
            from docs_src.events.tutorial002_py39 import app
        yield app
    
    
    def test_events(app: FastAPI):
        with TestClient(app) as client:
            response = client.get("/items/")
            assert response.status_code == 200, response.text
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 1.4K bytes
    - Click Count (0)
  2. tests/test_tutorial/test_dataclasses/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),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.dataclasses_.{request.param}")
    
        client = TestClient(mod.app)
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  3. docs/es/docs/advanced/response-headers.md

    Puedes declarar un parámetro de tipo `Response` en tu *path operation function* (como puedes hacer para cookies).
    
    Y luego puedes establecer headers en ese objeto de response *temporal*.
    
    {* ../../docs_src/response_headers/tutorial002_py39.py hl[1, 7:8] *}
    
    Y luego puedes devolver cualquier objeto que necesites, como harías normalmente (un `dict`, un modelo de base de datos, etc).
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  4. docs/ru/docs/tutorial/metadata.md

    Но вы можете изменить это с помощью параметра `openapi_url`.
    
    К примеру, чтобы задать её отображение по адресу `/api/v1/openapi.json`:
    
    {* ../../docs_src/metadata/tutorial002_py39.py hl[3] *}
    
    Если вы хотите отключить схему OpenAPI полностью, вы можете задать `openapi_url=None`, это также отключит пользовательские интерфейсы документации, которые её используют.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  5. docs/es/docs/advanced/path-operation-advanced-configuration.md

    Deberías hacerlo después de agregar todas tus *path operations*.
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial002_py39.py hl[2, 12:21, 24] *}
    
    /// tip | Consejo
    
    Si llamas manualmente a `app.openapi()`, deberías actualizar los `operationId`s antes de eso.
    
    ///
    
    /// warning | Advertencia
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  6. docs/pt/docs/advanced/path-operation-advanced-configuration.md

    Você deve fazer isso depois de adicionar todas as suas *operações de rota*.
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial002_py39.py hl[2, 12:21, 24] *}
    
    /// tip | Dica
    
    Se você chamar `app.openapi()` manualmente, os `operationId`s devem ser atualizados antes dessa chamada.
    
    ///
    
    /// warning | Atenção
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  7. docs/en/docs/advanced/path-operation-advanced-configuration.md

    You should do it after adding all your *path operations*.
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial002_py39.py hl[2, 12:21, 24] *}
    
    /// tip
    
    If you manually call `app.openapi()`, you should update the `operationId`s before that.
    
    ///
    
    /// warning
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  8. tests/test_tutorial/test_custom_docs_ui/test_tutorial002.py

    
    @pytest.fixture(scope="module")
    def client():
        static_dir: Path = Path(os.getcwd()) / "static"
        print(static_dir)
        static_dir.mkdir(exist_ok=True)
        from docs_src.custom_docs_ui.tutorial002_py39 import app
    
        with TestClient(app) as client:
            yield client
        static_dir.rmdir()
    
    
    def test_swagger_ui_html(client: TestClient):
        response = client.get("/docs")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  9. tests/test_tutorial/test_security/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),
            pytest.param("tutorial002_an_py39"),
            pytest.param("tutorial002_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  10. docs/ru/docs/tutorial/handling-errors.md

    Скорее всего, вам не потребуется использовать его непосредственно в коде.
    
    Но в случае, если это необходимо для продвинутого сценария, можно добавить пользовательские заголовки:
    
    {* ../../docs_src/handling_errors/tutorial002_py39.py hl[14] *}
    
    ## Установка пользовательских обработчиков исключений { #install-custom-exception-handlers }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 14.1K bytes
    - Click Count (0)
Back to Top