- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 1,458 for BytesX (0.07 seconds)
-
docs/es/docs/advanced/async-tests.md
## Ejecútalo { #run-it } Puedes ejecutar tus tests como de costumbre vía: <div class="termy"> ```console $ pytest ---> 100% ``` </div> ## En Detalle { #in-detail } El marcador `@pytest.mark.anyio` le dice a pytest que esta función de test debe ser llamada asíncronamente: {* ../../docs_src/async_tests/app_a_py310/test_main.py hl[7] *} /// tip | ConsejoCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 4K bytes - Click Count (0) -
docs/fr/docs/advanced/async-tests.md
## Exécuter { #run-it } Vous pouvez lancer vos tests comme d'habitude via : <div class="termy"> ```console $ pytest ---> 100% ``` </div> ## En détail { #in-detail } Le marqueur `@pytest.mark.anyio` indique à pytest que cette fonction de test doit être appelée de manière asynchrone : {* ../../docs_src/async_tests/app_a_py310/test_main.py hl[7] *} /// tip | AstuceCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 4.3K bytes - Click Count (0) -
docs/ko/docs/tutorial/testing.md
/// ## 실행하기 { #run-it } 그 후에는 `pytest`를 설치하기만 하면 됩니다. [가상 환경](../virtual-environments.md)을 만들고, 활성화 시킨 뒤에 설치하세요. 예시: <div class="termy"> ```console $ pip install pytest ---> 100% ``` </div> `pytest`는 파일과 테스트를 자동으로 감지하고 실행한 다음, 결과를 보고할 것입니다. 테스트를 다음 명령어로 실행하세요. <div class="termy"> ```console $ pytestCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 6.8K bytes - Click Count (0) -
scripts/tests/test_translation_fixer/test_header_permalinks/test_header_number_mismatch.py
from pathlib import Path import pytest from typer.testing import CliRunner from scripts.translation_fixer import cli data_path = Path( "scripts/tests/test_translation_fixer/test_header_permalinks/data" ).absolute() @pytest.mark.parametrize( "copy_test_files", [(f"{data_path}/en_doc.md", f"{data_path}/translated_doc_number_gt.md")], indirect=True, ) def test_gt(runner: CliRunner, root_dir: Path, copy_test_files):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Jan 10 22:43:44 GMT 2026 - 1.9K bytes - Click Count (0) -
tests/test_tutorial/test_body/test_tutorial003.py
import importlib import pytest from fastapi.testclient import TestClient from inline_snapshot import snapshot from ...utils import needs_py310 @pytest.fixture( name="client", params=[ pytest.param("tutorial003_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.body.{request.param}") client = TestClient(mod.app)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 6.1K bytes - Click Count (0) -
tests/test_invalid_path_param.py
import pytest from fastapi import FastAPI from pydantic import BaseModel def test_invalid_sequence(): with pytest.raises(AssertionError): app = FastAPI() class Item(BaseModel): title: str @app.get("/items/{id}") def read_items(id: list[Item]): pass # pragma: no cover def test_invalid_tuple(): with pytest.raises(AssertionError): app = FastAPI()
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1.6K bytes - Click Count (0) -
tests/test_request_params/test_cookie/test_required_str.py
from typing import Annotated import pytest from dirty_equals import IsOneOf from fastapi import Cookie, FastAPI from fastapi.testclient import TestClient from inline_snapshot import snapshot from pydantic import BaseModel, Field app = FastAPI() # ===================================================================================== # Without aliases @app.get("/required-str") async def read_required_str(p: Annotated[str, Cookie()]):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 10.4K bytes - Click Count (0) -
tests/test_request_params/test_form/test_list.py
from typing import Annotated import pytest from dirty_equals import IsOneOf, IsPartialDict from fastapi import FastAPI, Form from fastapi.testclient import TestClient from pydantic import BaseModel, Field from .utils import get_body_model_name app = FastAPI() # ===================================================================================== # Without aliases @app.post("/required-list-str", operation_id="required_list_str")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Dec 27 18:31:34 GMT 2025 - 11.7K bytes - Click Count (0) -
tests/test_stream_json_validation_error.py
client = TestClient(app) def test_stream_json_validation_error_async(): with pytest.raises(ResponseValidationError): client.get("/items/stream-invalid") def test_stream_json_validation_error_sync(): with pytest.raises(ResponseValidationError):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 27 18:56:47 GMT 2026 - 991 bytes - Click Count (0) -
docs/tr/docs/advanced/async-tests.md
Bunu nasıl çalıştırabileceğimize bir bakalım. ## pytest.mark.anyio { #pytest-mark-anyio }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 4.2K bytes - Click Count (0)