- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 400 for fixture (0.2 sec)
-
cni/pkg/nodeagent/net_test.go
} func TestServerRemovePod(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) defer cancel() setupLogging() fixture := getTestFixure(ctx) netServer := fixture.netServer ztunnelServer := fixture.ztunnelServer nlDeps := fixture.nlDeps pod := buildConvincingPod(false) // this is usually called after add. so manually add the pod uid for now fakens := newFakeNs(123)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Jul 25 16:13:38 UTC 2024 - 10.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/EventBusTest.java
assertEquals("Three Objects should be delivered.", 3, objectEvents.size()); assertEquals("String fixture must be first object delivered.", EVENT, objectEvents.get(0)); assertEquals("Object fixture must be second object delivered.", objEvent, objectEvents.get(1)); assertEquals( "Comparable fixture must be thirdobject delivered.", compEvent, objectEvents.get(2)); // Check the Catcher<Comparable<?>>...
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 15:16:45 UTC 2024 - 11.2K bytes - Viewed (0) -
tests/test_tutorial/test_custom_docs_ui/test_tutorial001.py
import os from pathlib import Path import pytest from fastapi.testclient import TestClient @pytest.fixture(scope="module") def client(): static_dir: Path = Path(os.getcwd()) / "static" print(static_dir) static_dir.mkdir(exist_ok=True) from docs_src.custom_docs_ui.tutorial001 import app with TestClient(app) as client: yield client static_dir.rmdir()
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu May 23 22:59:02 UTC 2024 - 1.3K bytes - Viewed (0) -
tests/test_computed_fields.py
import pytest from fastapi import FastAPI from fastapi.testclient import TestClient from .utils import needs_pydanticv2 @pytest.fixture(name="client") def get_client(): app = FastAPI() from pydantic import BaseModel, computed_field class Rectangle(BaseModel): width: int length: int @computed_field @property def area(self) -> int:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 12 09:44:57 UTC 2024 - 3K bytes - Viewed (0) -
tests/test_tutorial/test_request_form_models/test_tutorial002_an.py
import pytest from fastapi.testclient import TestClient from tests.utils import needs_pydanticv2 @pytest.fixture(name="client") def get_client(): from docs_src.request_form_models.tutorial002_an import app client = TestClient(app) return client @needs_pydanticv2 def test_post_body_form(client: TestClient): response = client.post("/login/", data={"username": "Foo", "password": "secret"})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Sep 06 17:31:18 UTC 2024 - 6.2K bytes - Viewed (0) -
tests/test_tutorial/test_request_form_models/test_tutorial002_pv1.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 import app client = TestClient(app) return client @needs_pydanticv1 def test_post_body_form(client: TestClient): response = client.post("/login/", data={"username": "Foo", "password": "secret"})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Sep 06 17:31:18 UTC 2024 - 6K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt
""" ) }, block = block ) /** * Runs the binary compatibility check against two source trees. * * The fixture build supports both Java and Kotlin sources. * * @param v1 sources producer for V1, receiver is the `src/main` directory * @param v2 sources producer for V2, receiver is the `src/main` directory
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 16.4K bytes - Viewed (0) -
tests/test_tutorial/test_request_form_models/test_tutorial002_pv1_an_p39.py
import pytest from fastapi.testclient import TestClient from tests.utils import needs_py39, needs_pydanticv1 @pytest.fixture(name="client") def get_client(): from docs_src.request_form_models.tutorial002_pv1_an_py39 import app client = TestClient(app) return client # TODO: remove when deprecating Pydantic v1 @needs_pydanticv1 @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.5K bytes - Viewed (0) -
tests/test_tutorial/test_request_form_models/test_tutorial002.py
import pytest from fastapi.testclient import TestClient from tests.utils import needs_pydanticv2 @pytest.fixture(name="client") def get_client(): from docs_src.request_form_models.tutorial002 import app client = TestClient(app) return client @needs_pydanticv2 def test_post_body_form(client: TestClient): response = client.post("/login/", data={"username": "Foo", "password": "secret"})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Sep 06 17:31:18 UTC 2024 - 6.2K bytes - Viewed (0) -
tests/test_tutorial/test_query_param_models/test_tutorial002.py
import pytest from dirty_equals import IsDict from fastapi.testclient import TestClient from inline_snapshot import snapshot from tests.utils import needs_py39, needs_py310, needs_pydanticv1, needs_pydanticv2 @pytest.fixture( name="client", params=[ pytest.param("tutorial002", marks=needs_pydanticv2), pytest.param("tutorial002_py39", marks=[needs_py39, needs_pydanticv2]),
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 10.4K bytes - Viewed (0)