- Sort Score
- Result 10 results
- Languages All
Results 291 - 300 of 586 for mytest (0.08 sec)
-
tests/test_tutorial/test_body_fields/test_tutorial001.py
import pytest from dirty_equals import IsDict from fastapi.testclient import TestClient @pytest.fixture(name="client") def get_client(): from docs_src.body_fields.tutorial001 import app client = TestClient(app) return client def test_items_5(client: TestClient): response = client.put("/items/5", json={"item": {"name": "Foo", "price": 3.0}}) assert response.status_code == 200 assert response.json() == {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 7.2K bytes - Viewed (0) -
tests/test_tutorial/test_body_fields/test_tutorial001_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.body_fields.tutorial001_py310 import app client = TestClient(app) return client @needs_py310 def test_items_5(client: TestClient): response = client.put("/items/5", json={"item": {"name": "Foo", "price": 3.0}})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 7.3K bytes - Viewed (0) -
tests/test_tutorial/test_request_form_models/test_tutorial002_pv1_an.py
import pytest from fastapi.testclient import TestClient from tests.utils import needs_pydanticv1 @pytest.fixture(name="client") def get_client(): from docs_src.request_form_models.tutorial002_pv1_an import app client = TestClient(app) return client # TODO: remove when deprecating Pydantic v1 @needs_pydanticv1 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.4K bytes - Viewed (0) -
tests/test_tutorial/test_request_files/test_tutorial001_02_py310.py
from pathlib import Path 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.request_files.tutorial001_02_py310 import app client = TestClient(app) return client @needs_py310 def test_post_form_no_body(client: TestClient): response = client.post("/files/")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 8.5K bytes - Viewed (0) -
docs/ru/docs/index.md
* очень простые тесты на основе HTTPX и `pytest` * **CORS** * **Cookie сеансы(сессии)** * ...и многое другое. ## Производительность
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 20 19:20:23 UTC 2024 - 25.8K bytes - Viewed (0) -
.github/ISSUE_TEMPLATE/bug_report.yaml
out the following fields. Before we begin, please make sure that the bug is still present in the [latest](https://github.com/google/guava/releases/latest) version of Guava available. If it's already fixed in the latest version of Guava, then please just update your Guava version instead. - type: input attributes: label: Guava Version
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 16 20:08:25 UTC 2024 - 2.9K bytes - Viewed (0) -
build-logic/build-update-utils/src/test/groovy/gradlebuild/buildutils/tasks/UpdateKotlinVersionsTest.groovy
def minimumSupported = "1.9.10" def "latest patch version"() { given: def allVersions = ["2.0.30", "2.0.20", "2.0.10", "2.0.0"] + previousVersions when: def selected = UpdateKotlinVersions.selectVersionsFrom(minimumSupported, allVersions) then: selected == ["1.9.10", "1.9.25", "2.0.0", "2.0.30"] } def "beta of latest patch version"() { given:
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Jul 23 22:23:07 UTC 2024 - 2.7K bytes - Viewed (0) -
tests/test_tutorial/test_body_updates/test_tutorial001.py
import pytest from fastapi.testclient import TestClient from ...utils import needs_pydanticv1, needs_pydanticv2 @pytest.fixture(name="client") def get_client(): from docs_src.body_updates.tutorial001 import app client = TestClient(app) return client def test_get(client: TestClient): response = client.get("/items/baz") assert response.status_code == 200, response.text assert response.json() == {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Sep 28 04:14:40 UTC 2023 - 11.8K bytes - Viewed (0) -
tests/test_tutorial/test_body_updates/test_tutorial001_py310.py
import pytest from fastapi.testclient import TestClient from ...utils import needs_py310, needs_pydanticv1, needs_pydanticv2 @pytest.fixture(name="client") def get_client(): from docs_src.body_updates.tutorial001_py310 import app client = TestClient(app) return client @needs_py310 def test_get(client: TestClient): response = client.get("/items/baz") assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Sep 28 04:14:40 UTC 2023 - 11.8K bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial012_an_py39.py
import pytest from dirty_equals import IsDict from fastapi.testclient import TestClient from ...utils import needs_py39 @pytest.fixture(name="client") def get_client(): from docs_src.dependencies.tutorial012_an_py39 import app client = TestClient(app) return client @needs_py39 def test_get_no_headers_items(client: TestClient): response = client.get("/items/")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 8.8K bytes - Viewed (0)