- Sort Score
- Result 10 results
- Languages All
Results 291 - 300 of 550 for tutorial008c_py39 (0.74 sec)
-
tests/test_tutorial/test_python_types/test_tutorial008b.py
import importlib from types import ModuleType from unittest.mock import patch import pytest from ...utils import needs_py310 @pytest.fixture( name="module", params=[ pytest.param("tutorial008b_py39"), pytest.param("tutorial008b_py310", marks=needs_py310), ], ) def get_module(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.python_types.{request.param}") return mod
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 637 bytes - Viewed (0) -
tests/test_tutorial/test_custom_response/test_tutorial006c.py
from fastapi.testclient import TestClient from docs_src.custom_response.tutorial006c_py39 import app client = TestClient(app) def test_redirect_status_code(): response = client.get("/pydantic", follow_redirects=False) assert response.status_code == 302 assert response.headers["location"] == "https://docs.pydantic.dev/" 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 - 904 bytes - Viewed (0) -
docs/de/docs/advanced/sub-applications.md
{* ../../docs_src/sub_applications/tutorial001_py39.py hl[3, 6:8] *} ### Unteranwendung { #sub-application } Erstellen Sie dann Ihre Unteranwendung und deren *Pfadoperationen*. Diese Unteranwendung ist nur eine weitere Standard-FastAPI-Anwendung, aber diese wird „gemountet“: {* ../../docs_src/sub_applications/tutorial001_py39.py hl[11, 14:16] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 3.4K bytes - Viewed (0) -
docs/en/docs/advanced/sub-applications.md
{* ../../docs_src/sub_applications/tutorial001_py39.py hl[3, 6:8] *} ### Sub-application { #sub-application } Then, create your sub-application, and its *path operations*. This sub-application is just another standard FastAPI application, but this is the one that will be "mounted": {* ../../docs_src/sub_applications/tutorial001_py39.py hl[11, 14:16] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 3K bytes - Viewed (0) -
docs/ru/docs/tutorial/background-tasks.md
{* ../../docs_src/background_tasks/tutorial001_py39.py hl[6:9] *} ## Добавление фоновой задачи { #add-the-background-task } Внутри вашей функции‑обработчика пути передайте функцию задачи объекту фоновых задач методом `.add_task()`: {* ../../docs_src/background_tasks/tutorial001_py39.py hl[14] *} `.add_task()` принимает следующие аргументы:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 7.6K bytes - Viewed (0) -
tests/test_tutorial/test_python_types/test_tutorial008.py
from unittest.mock import patch from docs_src.python_types.tutorial008_py39 import process_items def test_process_items(): with patch("builtins.print") as mock_print: process_items({"a": 1.0, "b": 2.5}) assert mock_print.call_count == 4 call_args = [arg.args for arg in mock_print.call_args_list] assert call_args == [ ("a",), (1.0,), ("b",), (2.5,),
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 417 bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial008e.py
import importlib import pytest from fastapi.testclient import TestClient @pytest.fixture( name="client", params=[ pytest.param("tutorial008e_py39"), pytest.param("tutorial008e_an_py39"), ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.dependencies.{request.param}") client = TestClient(mod.app) return client
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 574 bytes - Viewed (0) -
docs/en/docs/tutorial/background-tasks.md
{* ../../docs_src/background_tasks/tutorial001_py39.py hl[6:9] *} ## Add the background task { #add-the-background-task } Inside of your *path operation function*, pass your task function to the *background tasks* object with the method `.add_task()`: {* ../../docs_src/background_tasks/tutorial001_py39.py hl[14] *} `.add_task()` receives as arguments:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 4.8K bytes - Viewed (0) -
docs/pt/docs/tutorial/background-tasks.md
{* ../../docs_src/background_tasks/tutorial001_py39.py hl[6:9] *} ## Adicione a tarefa em segundo plano { #add-the-background-task } Dentro da sua *função de operação de rota*, passe sua função de tarefa para o objeto de *tarefas em segundo plano* com o método `.add_task()`: {* ../../docs_src/background_tasks/tutorial001_py39.py hl[14] *} O `.add_task()` recebe como argumentos:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 5.2K bytes - Viewed (0) -
tests/test_tutorial/test_python_types/test_tutorial009c.py
import re from types import ModuleType from unittest.mock import patch import pytest from ...utils import needs_py310 @pytest.fixture( name="module", params=[ pytest.param("tutorial009c_py39"), pytest.param("tutorial009c_py310", marks=needs_py310), ], ) def get_module(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.python_types.{request.param}") return mod
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 777 bytes - Viewed (0)