- Sort Score
- Num 10 results
- Language All
Results 561 - 570 of 4,419 for getI (0.03 seconds)
-
tests/test_stream_json_validation_error.py
class Item(BaseModel): name: str price: float app = FastAPI() @app.get("/items/stream-invalid") async def stream_items_invalid() -> AsyncIterable[Item]: yield {"name": "valid", "price": 1.0} yield {"name": "invalid", "price": "not-a-number"} @app.get("/items/stream-invalid-sync") def stream_items_invalid_sync() -> Iterable[Item]: yield {"name": "valid", "price": 1.0}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 27 18:56:47 GMT 2026 - 991 bytes - Click Count (0) -
tests/test_dependency_paramless.py
@app.get("/get-credentials") def get_credentials( credentials: Annotated[dict, Security(process_auth, scopes=["a", "b"])], ): return credentials @app.get( "/parameterless-with-scopes", dependencies=[Security(process_auth, scopes=["a", "b"])], ) def get_parameterless_with_scopes(): return {"status": "ok"} @app.get( "/parameterless-without-scopes",Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CookiesTest.kt
client = client .newBuilder() .cookieJar(JavaNetCookieJar(cookieManager)) .build() get(urlWithIpAddress(server, "/")) val request1 = server.takeRequest() assertThat(request1.headers["Cookie"]).isNull() get(urlWithIpAddress(server, "/")) val request2 = server.takeRequest() assertThat(request2.headers["Cookie"]).isEqualTo("a=android; b=banana") }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Mar 19 07:46:39 GMT 2026 - 14.5K bytes - Click Count (0) -
internal/config/drive/drive.go
MaxTimeout: 30 * time.Second, } if err = config.CheckValidKeys(config.DriveSubSys, kvs, DefaultKVS); err != nil { return cfg, err } // if not set. Get default value from environment d := env.Get(EnvMaxDriveTimeout, env.Get(EnvMaxDriveTimeoutLegacy, env.Get(EnvMaxDiskTimeoutLegacy, kvs.GetWithDefault(MaxTimeout, DefaultKVS)))) if d == "" { cfg.MaxTimeout = 30 * time.Second } else { dur, _ := time.ParseDuration(d)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Nov 11 14:51:43 GMT 2024 - 3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/EnumHashBiMapTest.java
EnumHashBiMap<Currency, String> bimap2 = EnumHashBiMap.create(bimap1); assertThat(bimap2.get(Currency.DOLLAR)).isEqualTo("dollar"); assertEquals(bimap1, bimap2); bimap2.inverse().put("franc", Currency.FRANC); assertThat(bimap2.get(Currency.FRANC)).isEqualTo("franc"); assertThat(bimap1.get(Currency.FRANC)).isNull(); assertFalse(bimap2.equals(bimap1)); /* Test that it can be empty. */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 8.4K bytes - Click Count (0) -
tests/test_json_type.py
return items @app.get("/query-json-list") def query_json_list(items: Annotated[Json[list[str]], Query()]) -> list[str]: return items @app.get("/header-json-list") def header_json_list(x_items: Annotated[Json[list[str]], Header()]) -> list[str]: return x_items @app.get("/cookie-json-list")Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 05 18:41:43 GMT 2026 - 1.7K bytes - Click Count (0) -
tests/test_repeated_dependency_schema.py
def get_something_else(*, someheader: str = Depends(get_header)): return f"{someheader}123" @app.get("/") def get_deps(dep1: str = Depends(get_header), dep2: str = Depends(get_something_else)): return {"dep1": dep1, "dep2": dep2} client = TestClient(app) def test_response(): response = client.get("/", headers={"someheader": "hello"}) assert response.status_code == status.HTTP_200_OK
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 4K bytes - Click Count (0) -
src/main/java/jcifs/SmbResourceException.java
this.availableResources = -1; this.requestedResources = -1; } /** * Gets the resource type * * @return the resource type */ public ResourceType getResourceType() { return resourceType; } /** * Gets available resources * * @return available resources or -1 if unknown */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 5.6K bytes - Click Count (0) -
tests/test_openapi_examples.py
response = client.get("/path_examples/foo") assert response.status_code == 200, response.text response = client.get("/query_examples/") assert response.status_code == 200, response.text response = client.get("/header_examples/") assert response.status_code == 200, response.text response = client.get("/cookie_examples/")Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 16.4K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/transform/TransformationManagerTest.java
assertTrue( tms.get(0) instanceof ReleaseArtifactTransformation, "We expected the release transformation and got " + tms.get(0)); assertTrue( tms.get(1) instanceof LatestArtifactTransformation, "We expected the latest transformation and got " + tms.get(1)); assertTrue( tms.get(2) instanceof SnapshotTransformation,Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2.3K bytes - Click Count (0)