- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 23 for app01_py39 (0.05 sec)
-
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")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 1.2K bytes - Viewed (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": {
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 830 bytes - Viewed (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:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 833 bytes - Viewed (0) -
docs/en/docs/advanced/async-tests.md
├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` The file `main.py` would have: {* ../../docs_src/async_tests/app_a_py39/main.py *} The file `test_main.py` would have the tests for `main.py`, it could look like this now: {* ../../docs_src/async_tests/app_a_py39/test_main.py *} ## Run it { #run-it } You can run your tests as usual via: <div class="termy"> ```console $ pytestRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 4K bytes - Viewed (0) -
docs/de/docs/advanced/async-tests.md
│ ├── __init__.py │ ├── main.py │ └── test_main.py ``` Die Datei `main.py` hätte als Inhalt: {* ../../docs_src/async_tests/app_a_py39/main.py *} Die Datei `test_main.py` hätte die Tests für `main.py`, das könnte jetzt so aussehen: {* ../../docs_src/async_tests/app_a_py39/test_main.py *} ## Es ausführen { #run-it } Sie können Ihre Tests wie gewohnt ausführen mit: <div class="termy"> ```consoleRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 4.5K bytes - Viewed (1) -
tests/test_tutorial/test_async_tests/test_main_a.py
import pytest from docs_src.async_tests.app_a_py39.test_main import test_root @pytest.mark.anyio async def test_async_testing():
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 154 bytes - Viewed (0) -
docs/en/docs/tutorial/testing.md
``` . ├── app │ ├── __init__.py │ └── main.py ``` In the file `main.py` you have your **FastAPI** app: {* ../../docs_src/app_testing/app_a_py39/main.py *} ### Testing file { #testing-file } Then you could have a file `test_main.py` with your tests. It could live on the same Python package (the same directory with a `__init__.py` file): ``` hl_lines="5" .Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 6.1K bytes - Viewed (0) -
docs/pt/docs/tutorial/testing.md
``` . ├── app │ ├── __init__.py │ └── main.py ``` No arquivo `main.py` você tem sua aplicação **FastAPI**: {* ../../docs_src/app_testing/app_a_py39/main.py *} ### Arquivo de teste { #testing-file } Então você poderia ter um arquivo `test_main.py` com seus testes. Ele poderia estar no mesmo pacote Python (o mesmo diretório com um arquivo `__init__.py`):Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 6.5K bytes - Viewed (0) -
docs/es/docs/tutorial/testing.md
``` . ├── app │ ├── __init__.py │ └── main.py ``` En el archivo `main.py` tienes tu aplicación de **FastAPI**: {* ../../docs_src/app_testing/app_a_py39/main.py *} ### Archivo de prueba { #testing-file } Entonces podrías tener un archivo `test_main.py` con tus pruebas. Podría estar en el mismo paquete de Python (el mismo directorio con un archivo `__init__.py`):Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 6.5K bytes - Viewed (0) -
docs/ru/docs/tutorial/testing.md
``` . ├── app │ ├── __init__.py │ └── main.py ``` В файле `main.py` находится Ваше приложение **FastAPI**: {* ../../docs_src/app_testing/app_a_py39/main.py *} ### Файл тестов { #testing-file }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 10K bytes - Viewed (0)