- Sort Score
- Result 10 results
- Languages All
Results 171 - 179 of 179 for tutorial002_an_py310 (0.2 sec)
-
tests/test_tutorial/test_request_form_models/test_tutorial002_an_py39.py
import pytest from fastapi.testclient import TestClient from tests.utils import needs_py39, needs_pydanticv2 @pytest.fixture(name="client") def get_client(): from docs_src.request_form_models.tutorial002_an_py39 import app client = TestClient(app) return client @needs_pydanticv2 @needs_py39 def test_post_body_form(client: TestClient):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Sep 06 17:31:18 UTC 2024 - 6.3K bytes - Viewed (0) -
tests/test_tutorial/test_request_files/test_tutorial002_an_py39.py
from dirty_equals import IsDict from fastapi import FastAPI from fastapi.testclient import TestClient from ...utils import needs_py39 @pytest.fixture(name="app") def get_app(): from docs_src.request_files.tutorial002_an_py39 import app return app @pytest.fixture(name="client") def get_client(app: FastAPI): client = TestClient(app) return client @needs_py39
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 8.9K bytes - Viewed (0) -
docs/pt/docs/tutorial/request-form-models.md
/// Você pode utilizar a configuração de modelo do Pydantic para `proibir` qualquer campo `extra`: //// tab | Python 3.9+ ```Python hl_lines="12" {!> ../../docs_src/request_form_models/tutorial002_an_py39.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="11" {!> ../../docs_src/request_form_models/tutorial002_an.py!} ``` //// //// tab | Python 3.8+ non-Annotated /// tip
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.1K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial003_an_py310.py
import pytest from dirty_equals import IsDict from fastapi.testclient import TestClient from ...utils import needs_py310 @pytest.fixture(name="client") def get_client(): from docs_src.security.tutorial003_an_py310 import app client = TestClient(app) return client @needs_py310 def test_login(client: TestClient): response = client.post("/token", data={"username": "johndoe", "password": "secret"})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 8.4K bytes - Viewed (0) -
docs/zh/docs/tutorial/schema-extra-example.md
## `Body` 额外参数 你可以通过传递额外信息给 `Field` 同样的方式操作`Path`, `Query`, `Body`等。 比如,你可以将请求体的一个 `example` 传递给 `Body`: //// tab | Python 3.10+ ```Python hl_lines="22-27" {!> ../../docs_src/schema_extra_example/tutorial003_an_py310.py!} ``` //// //// tab | Python 3.9+ ```Python hl_lines="22-27" {!> ../../docs_src/schema_extra_example/tutorial003_an_py39.py!} ``` //// //// tab | Python 3.8+
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.5K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_tutorial001.py
pytest.param("tutorial001_py310", marks=needs_py310), "tutorial001_an", pytest.param("tutorial001_an_py39", marks=needs_py39), pytest.param("tutorial001_an_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): clear_sqlmodel() # TODO: remove when updating SQL tutorial to use new lifespan API
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 09 19:44:42 UTC 2024 - 14.8K bytes - Viewed (0) -
docs/de/docs/tutorial/request-files.md
Um das zu machen, deklarieren Sie eine Liste von `bytes` oder `UploadFile`s: //// tab | Python 3.9+ ```Python hl_lines="10 15" {!> ../../docs_src/request_files/tutorial002_an_py39.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="11 16" {!> ../../docs_src/request_files/tutorial002_an.py!} ``` //// //// tab | Python 3.9+ nicht annotiert
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.3K bytes - Viewed (0) -
docs/pt/docs/tutorial/request_files.md
Para usar isso, declare uma lista de `bytes` ou `UploadFile`: //// tab | Python 3.9+ ```Python hl_lines="10 15" {!> ../../docs_src/request_files/tutorial002_an_py39.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="11 16" {!> ../../docs_src/request_files/tutorial002_an.py!} ``` //// //// tab | Python 3.9+ non-Annotated
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.8K bytes - Viewed (0) -
docs/ru/docs/tutorial/request-files.md
Для этого необходимо объявить список `bytes` или `UploadFile`: //// tab | Python 3.9+ ```Python hl_lines="10 15" {!> ../../docs_src/request_files/tutorial002_an_py39.py!} ``` //// //// tab | Python 3.6+ ```Python hl_lines="11 16" {!> ../../docs_src/request_files/tutorial002_an.py!} ``` //// //// tab | Python 3.9+ без Annotated
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 15.3K bytes - Viewed (0)