- Sort Score
- Result 10 results
- Languages All
Results 211 - 220 of 231 for tutorial001_an (0.37 sec)
-
docs/de/docs/tutorial/background-tasks.md
```Python hl_lines="13 15 22 25" {!> ../../docs_src/background_tasks/tutorial002_an_py39.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="14 16 23 26" {!> ../../docs_src/background_tasks/tutorial002_an.py!} ``` //// //// tab | Python 3.10+ nicht annotiert /// tip | "Tipp" Bevorzugen Sie die `Annotated`-Version, falls möglich. /// ```Python hl_lines="11 13 20 23"
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.4K bytes - Viewed (0) -
tests/test_tutorial/test_websockets/test_tutorial002_an.py
import pytest from fastapi.testclient import TestClient from fastapi.websockets import WebSocketDisconnect from docs_src.websockets.tutorial002_an import app def test_main(): client = TestClient(app) response = client.get("/") assert response.status_code == 200, response.text assert b"<!DOCTYPE html>" in response.content def test_websocket_with_cookie(): client = TestClient(app, cookies={"session": "fakesession"})
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 3.6K bytes - Viewed (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial005_an.py
import pytest from dirty_equals import IsDict from fastapi.testclient import TestClient @pytest.fixture(name="client") def get_client(): from docs_src.schema_extra_example.tutorial005_an import app client = TestClient(app) return client def test_post_body_example(client: TestClient): response = client.put( "/items/5", json={ "name": "Foo",
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sat Aug 26 18:03:13 UTC 2023 - 6.7K bytes - Viewed (0) -
tests/test_tutorial/test_request_files/test_tutorial003_an.py
from fastapi.testclient import TestClient from docs_src.request_files.tutorial003_an import app client = TestClient(app) def test_post_files(tmp_path): path = tmp_path / "test.txt" path.write_bytes(b"<file content>") path2 = tmp_path / "test2.txt" path2.write_bytes(b"<file content2>") client = TestClient(app) with path.open("rb") as file, path2.open("rb") as file2: response = client.post(
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 7.1K bytes - Viewed (0) -
tests/test_tutorial/test_request_files/test_tutorial002_an.py
from dirty_equals import IsDict from fastapi.testclient import TestClient from docs_src.request_files.tutorial002_an import app client = TestClient(app) def test_post_form_no_body(): response = client.post("/files/") assert response.status_code == 422, response.text assert response.json() == IsDict( { "detail": [ { "type": "missing",
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 8.5K bytes - Viewed (0) -
docs/zh/docs/tutorial/dependencies/dependencies-with-yield.md
```Python hl_lines="6 14 22" {!> ../../docs_src/dependencies/tutorial008_an_py39.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="5 13 21" {!> ../../docs_src/dependencies/tutorial008_an.py!} ``` //// //// tab | Python 3.8+ non-Annotated /// tip | 提示 如果可以,请尽量使用 `Annotated` 版本。 /// ```Python hl_lines="4 12 20" {!> ../../docs_src/dependencies/tutorial008.py!}
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 13.3K bytes - Viewed (0) -
docs/zh/docs/tutorial/background-tasks.md
```Python hl_lines="13 15 22 25" {!> ../../docs_src/background_tasks/tutorial002_an_py39.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="14 16 23 26" {!> ../../docs_src/background_tasks/tutorial002_an.py!} ``` //// //// tab | Python 3.10+ 没Annotated /// tip 尽可能选择使用 `Annotated` 的版本。 /// ```Python hl_lines="11 13 20 23"
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5K bytes - Viewed (0) -
docs/zh/docs/advanced/websockets.md
```Python hl_lines="68-69 82" {!> ../../docs_src/websockets/tutorial002_an_py39.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="69-70 83" {!> ../../docs_src/websockets/tutorial002_an.py!} ``` //// //// tab | Python 3.10+ 非带注解版本 /// tip 如果可能,请尽量使用 `Annotated` 版本。 /// ```Python hl_lines="66-67 79"
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.9K bytes - Viewed (0) -
tests/test_tutorial/test_request_files/test_tutorial001_02.py
from dirty_equals import IsDict from fastapi.testclient import TestClient from docs_src.request_files.tutorial001_02 import app client = TestClient(app) def test_post_form_no_body(): response = client.post("/files/") assert response.status_code == 200, response.text assert response.json() == {"message": "No file sent"} def test_post_uploadfile_no_body(): response = client.post("/uploadfile/")
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 8.2K bytes - Viewed (0) -
docs/zh/docs/tutorial/schema-extra-example.md
```Python hl_lines="22-27" {!> ../../docs_src/schema_extra_example/tutorial003_an_py39.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="23-28" {!> ../../docs_src/schema_extra_example/tutorial003_an.py!} ``` //// //// tab | Python 3.10+ non-Annotated /// tip 尽可能选择使用 `Annotated` 的版本。 /// ```Python hl_lines="18-23" {!> ../../docs_src/schema_extra_example/tutorial003_py310.py!}
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.5K bytes - Viewed (0)