- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 20 for app01_py39 (0.1 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tests/test_tutorial/test_settings/test_app01.py
from fastapi.testclient import TestClient from pydantic import ValidationError from pytest import MonkeyPatch @pytest.fixture( name="mod_name", params=[ pytest.param("app01_py39"), ], ) def get_mod_name(request: pytest.FixtureRequest): return f"docs_src.settings.{request.param}.main" @pytest.fixture(name="client")
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) -
docs/es/docs/advanced/settings.md
Por ejemplo, podrías tener un archivo `config.py` con: {* ../../docs_src/settings/app01_py39/config.py *} Y luego usarlo en un archivo `main.py`: {* ../../docs_src/settings/app01_py39/main.py hl[3,11:13] *} /// tip | ConsejoCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 13.2K bytes - Click Count (0) -
docs/pt/docs/advanced/settings.md
Por exemplo, você poderia ter um arquivo `config.py` com: {* ../../docs_src/settings/app01_py39/config.py *} E então usá-lo em um arquivo `main.py`: {* ../../docs_src/settings/app01_py39/main.py hl[3,11:13] *} /// tip | DicaCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 13K bytes - Click Count (0) -
docs/en/docs/advanced/settings.md
For example, you could have a file `config.py` with: {* ../../docs_src/settings/app01_py39/config.py *} And then use it in a file `main.py`: {* ../../docs_src/settings/app01_py39/main.py hl[3,11:13] *} /// tipCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 11.2K bytes - Click Count (0) -
docs/ru/docs/advanced/async-tests.md
``` . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` Файл `main.py`: {* ../../docs_src/async_tests/app_a_py39/main.py *} Файл `test_main.py` содержит тесты для `main.py`, теперь он может выглядеть так: {* ../../docs_src/async_tests/app_a_py39/test_main.py *} ## Запуск тестов { #run-it } Вы можете запустить свои тесты как обычно: <div class="termy"> ```console $ pytestCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 6.3K bytes - Click Count (0) -
docs/es/docs/advanced/async-tests.md
. ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` El archivo `main.py` tendría: {* ../../docs_src/async_tests/app_a_py39/main.py *} El archivo `test_main.py` tendría los tests para `main.py`, podría verse así ahora: {* ../../docs_src/async_tests/app_a_py39/test_main.py *} ## Ejecútalo { #run-it } Puedes ejecutar tus tests como de costumbre vía: <div class="termy"> ```consoleCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 4.2K bytes - Click Count (0) -
tests/test_tutorial/test_settings/test_app02.py
import importlib from types import ModuleType import pytest from pytest import MonkeyPatch @pytest.fixture( name="mod_path", params=[ pytest.param("app02_py39"), pytest.param("app02_an_py39"), ], ) def get_mod_path(request: pytest.FixtureRequest): mod_path = f"docs_src.settings.{request.param}" return mod_path @pytest.fixture(name="main_mod")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 1K bytes - Click Count (0) -
tests/test_tutorial/test_settings/test_app03.py
import importlib from types import ModuleType import pytest from fastapi.testclient import TestClient from pytest import MonkeyPatch @pytest.fixture( name="mod_path", params=[ pytest.param("app03_py39"), pytest.param("app03_an_py39"), ], ) def get_mod_path(request: pytest.FixtureRequest): mod_path = f"docs_src.settings.{request.param}" return mod_path @pytest.fixture(name="main_mod")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 1.2K bytes - Click Count (0) -
tests/test_tutorial/test_testing/test_main_a.py
from docs_src.app_testing.app_a_py39.test_main import client, test_read_main def test_main(): test_read_main() def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/": { "get": {
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 830 bytes - Click Count (0) -
tests/test_tutorial/test_testing/test_main_b.py
import importlib from types import ModuleType import pytest from ...utils import needs_py310 @pytest.fixture( name="test_module", params=[ "app_b_py39.test_main", pytest.param("app_b_py310.test_main", marks=needs_py310), "app_b_an_py39.test_main", pytest.param("app_b_an_py310.test_main", marks=needs_py310), ], ) def get_test_module(request: pytest.FixtureRequest) -> ModuleType:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 833 bytes - Click Count (0)