- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 53 for Remark (0.04 sec)
-
docs/em/docs/advanced/async-tests.md
β πͺ βοΈ π π’ π π― πͺ β , πΌ, πβ π π¬ π π½ π. π π π π― π¨ π¨ π FastAPI πΈ & β€΄οΈ β π π π©βπ» βͺ β β π½ π½, βͺ βοΈ π π½ π. β‘οΈ π β π₯ πͺ β π π·. ## pytest.mark.anyio π₯ π₯ π π€ π π’ π π―, π π― π’ βοΈ π. AnyIO π π π π, π β π₯ β π π― π’ π€ π. ## πΈπ² π₯ π **FastAPI** πΈ βοΈ π `def` π’ β©οΈ `async def`, β«οΈ `async` πΈ π.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3K bytes - Viewed (0) -
docs/de/docs/advanced/async-tests.md
Schauen wir uns an, wie wir das machen kΓΆnnen. ## pytest.mark.anyio
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 15:34:47 UTC 2024 - 4.3K bytes - Viewed (0) -
docs/en/docs/advanced/async-tests.md
Let's look at how we can make that work. ## pytest.mark.anyio If we want to call asynchronous functions in our tests, our test functions have to be asynchronous. AnyIO provides a neat plugin for this, that allows us to specify that some test functions are to be called asynchronously.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 15:43:29 UTC 2024 - 3.8K bytes - Viewed (0) -
tests/test_datastructures.py
assert response.json() == {"filename": "test.txt"} assert testing_file_store assert testing_file_store[0].file.closed # For UploadFile coverage, segments copied from Starlette tests @pytest.mark.anyio async def test_upload_file(): stream = io.BytesIO(b"data") file = UploadFile(filename="file", file=stream, size=4) assert await file.read() == b"data" assert file.size == 4
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 18 12:36:40 UTC 2023 - 2K bytes - Viewed (0) -
tests/test_tutorial/test_header_params/test_tutorial001_an_py310.py
@pytest.fixture(name="client") def get_client(): from docs_src.header_params.tutorial001_an_py310 import app client = TestClient(app) return client @needs_py310 @pytest.mark.parametrize( "path,headers,expected_status,expected_response", [ ("/items", None, 200, {"User-Agent": "testclient"}), ("/items", {"X-Header": "notvalid"}, 200, {"User-Agent": "testclient"}),
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 4K bytes - Viewed (0) -
tests/test_tutorial/test_header_params/test_tutorial002_an_py39.py
@pytest.fixture(name="client") def get_client(): from docs_src.header_params.tutorial002_an_py39 import app client = TestClient(app) return client @needs_py39 @pytest.mark.parametrize( "path,headers,expected_status,expected_response", [ ("/items", None, 200, {"strange_header": None}), ("/items", {"X-Header": "notvalid"}, 200, {"strange_header": None}), (
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 4.2K bytes - Viewed (0) -
tests/test_tutorial/test_header_params/test_tutorial003_an_py39.py
@pytest.fixture(name="client") def get_client(): from docs_src.header_params.tutorial003_an_py39 import app client = TestClient(app) return client @needs_py39 @pytest.mark.parametrize( "path,headers,expected_status,expected_response", [ ("/items", None, 200, {"X-Token values": None}), ("/items", {"x-token": "foo"}, 200, {"X-Token values": ["foo"]}),
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 4.3K bytes - Viewed (0) -
tests/test_custom_route_class.py
router_b.include_router(router=router_c, prefix="/c") router_a.include_router(router=router_b, prefix="/b") app.include_router(router=router_a, prefix="/a") client = TestClient(app) @pytest.mark.parametrize( "path,expected_status,expected_response", [ ("/a", 200, {"msg": "A"}), ("/a/b", 200, {"msg": "B"}), ("/a/b/c", 200, {"msg": "C"}), ], )
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 3.1K bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial004.py
import pytest from dirty_equals import IsDict, IsOneOf from fastapi.testclient import TestClient from docs_src.response_model.tutorial004 import app client = TestClient(app) @pytest.mark.parametrize( "url,data", [ ("/items/foo", {"name": "Foo", "price": 50.2}), ( "/items/bar", {"name": "Bar", "description": "The bartenders", "price": 62, "tax": 20.2}, ), (
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Aug 04 20:47:07 UTC 2023 - 5K bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial004_py310.py
@pytest.fixture(name="client") def get_client(): from docs_src.response_model.tutorial004_py310 import app client = TestClient(app) return client @needs_py310 @pytest.mark.parametrize( "url,data", [ ("/items/foo", {"name": "Foo", "price": 50.2}), ( "/items/bar", {"name": "Bar", "description": "The bartenders", "price": 62, "tax": 20.2},
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Aug 04 20:47:07 UTC 2023 - 5.2K bytes - Viewed (0)