- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 294 for ptrtest (0.05 sec)
-
tests/test_tutorial/test_dependencies/test_tutorial006_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.tutorial006_an_py39 import app client = TestClient(app) return client @needs_py39 def test_get_no_headers(client: TestClient): response = client.get("/items/") assert response.status_code == 422, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 5.3K bytes - Viewed (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial004_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.schema_extra_example.tutorial004_an_py39 import app client = TestClient(app) return client # Test required and embedded body parameters with no bodies sent @needs_py39 def test_post_body_example(client: TestClient):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 7.1K bytes - Viewed (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial004_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.schema_extra_example.tutorial004_py310 import app client = TestClient(app) return client # Test required and embedded body parameters with no bodies sent @needs_py310 def test_post_body_example(client: TestClient):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 7.1K bytes - Viewed (0) -
tests/test_tutorial/test_request_files/test_tutorial001_02_an_py39.py
from pathlib import Path 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.request_files.tutorial001_02_an_py39 import app client = TestClient(app) return client @needs_py39 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) -
tests/test_param_include_in_schema.py
from typing import Optional import pytest from fastapi import Cookie, FastAPI, Header, Path, Query from fastapi.testclient import TestClient app = FastAPI() @app.get("/hidden_cookie") async def hidden_cookie( hidden_cookie: Optional[str] = Cookie(default=None, include_in_schema=False), ): return {"hidden_cookie": hidden_cookie} @app.get("/hidden_header") async def hidden_header(
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 7.4K bytes - Viewed (0) -
tests/test_router_events.py
@pytest.fixture def state() -> State: return State() @pytest.mark.filterwarnings( r"ignore:\s*on_event is deprecated, use lifespan event handlers instead.*:DeprecationWarning" ) def test_router_events(state: State) -> None: app = FastAPI() @app.get("/") def main() -> Dict[str, str]: return {"message": "Hello World"} @app.on_event("startup") def app_startup() -> None:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 24 19:09:52 UTC 2024 - 7.3K bytes - Viewed (0) -
docs/ko/docs/project-generation.md
- π¦ λ€ν¬ λͺ¨λ μ§μ. - π [Docker Compose](https://www.docker.com): κ°λ° νκ²½κ³Ό νλ‘λμ (μ΄μ). - π κΈ°λ³ΈμΌλ‘ μ§μλλ μμ ν λΉλ°λ²νΈ ν΄μ±. - π JWT ν ν° μΈμ¦. - π« μ΄λ©μΌ κΈ°λ° λΉλ°λ²νΈ 볡ꡬ. - β [Pytest]λ₯Ό μ΄μ©ν ν μ€νΈ(https://pytest.org). - π [Traefik](https://traefik.io): 리λ²μ€ νλ‘μ / λ‘λ λ°Έλ°μ. - π’ Docker Composeλ₯Ό μ΄μ©ν λ°°ν¬ μ§μΉ¨: μλ HTTPS μΈμ¦μλ₯Ό μ²λ¦¬νκΈ° μν νλ‘ νΈμλ Traefik νλ‘μ μ€μ λ°©λ²μ ν¬ν¨.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Oct 04 11:16:34 UTC 2024 - 2.1K bytes - Viewed (0) -
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_body_fields/test_tutorial001_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.body_fields.tutorial001_an_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) -
docs/em/docs/advanced/async-tests.md
```Python {!../../docs_src/async_tests/test_main.py!} ``` ## π β«οΈ π πͺ π π π― π π¨: <div class="termy"> ```console $ pytest ---> 100% ``` </div> ## βΉ π `@pytest.mark.anyio` π¬ β³ π π π― π’ π π€ π: ```Python hl_lines="7" {!../../docs_src/async_tests/test_main.py!} ``` /// tip
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3K bytes - Viewed (0)