- Sort Score
- Result 10 results
- Languages All
Results 271 - 280 of 3,475 for getE (0.02 sec)
-
guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java
Collection<V> result = multimap().asMap().get(k0()); result.add(v3()); assertContentsAnyOrder(multimap().get(k0()), v0(), v3()); } @CollectionSize.Require(absent = ZERO) @MapFeature.Require({SUPPORTS_REMOVE, SUPPORTS_PUT}) public void testPropagatesRemoveThenAddToMultimap() { int oldSize = getNumElements(); Collection<V> result = multimap().asMap().get(k0()); assertTrue(result.remove(v0()));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005_an_py39.py
def test_no_token(client: TestClient): response = client.get("/users/me") assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} assert response.headers["WWW-Authenticate"] == "Bearer" @needs_py39 def test_token(client: TestClient): access_token = get_access_token(scope="me", client=client) response = client.get(
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.3K bytes - Viewed (0) -
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappedRange.kt
else -> 124 } } val b2: Int get() = mappedTo[0] and 0x7f val b3: Int get() = mappedTo[1] and 0x7f } data class InlineDelta( override val rangeStart: Int, val codepointDelta: Int, ) : MappedRange { private val absoluteDelta = abs(codepointDelta) val b1: Int get() = when {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.5K bytes - Viewed (0) -
tests/test_tutorial/test_query_params_str_validations/test_tutorial010_an_py39.py
@needs_py39 def test_query_params_str_validations_no_query(client: TestClient): response = client.get("/items/") assert response.status_code == 200 assert response.json() == {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]} @needs_py39 def test_query_params_str_validations_item_query_fixedquery(client: TestClient): response = client.get("/items/", params={"item-query": "fixedquery"}) assert response.status_code == 200
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 6.3K bytes - Viewed (0) -
tests/test_security_api_key_query.py
user = User(username=oauth_header) return user @app.get("/users/me") def read_current_user(current_user: User = Depends(get_current_user)): return current_user client = TestClient(app) def test_security_api_key(): response = client.get("/users/me?key=secret") assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 1.8K bytes - Viewed (0) -
tests/test_security_http_base_description.py
security = HTTPBase(scheme="Other", description="Other Security Scheme") @app.get("/users/me") def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)): return {"scheme": credentials.scheme, "credentials": credentials.credentials} client = TestClient(app) def test_security_http_base(): response = client.get("/users/me", headers={"Authorization": "Other foobar"})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 1.9K bytes - Viewed (0) -
tests/test_tutorial/test_handling_errors/test_tutorial006.py
def test_get_http_error(): response = client.get("/items/3") assert response.status_code == 418, response.text assert response.json() == {"detail": "Nope! I don't like 3."} def test_get(): response = client.get("/items/2") assert response.status_code == 200, response.text assert response.json() == {"item_id": 2} def test_openapi_schema(): response = client.get("/openapi.json")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 4K bytes - Viewed (0) -
okhttp/src/test/java/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") }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 13K bytes - Viewed (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)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 3K bytes - Viewed (0) -
internal/kms/config.go
Type: MinKMS, DefaultKey: env.Get(EnvKMSDefaultKey, ""), conn: &kmsConn{ enclave: env.Get(EnvKMSEnclave, ""), defaultKey: env.Get(EnvKMSDefaultKey, ""), client: client, }, latencyBuckets: defaultLatencyBuckets, latency: make([]atomic.Uint64, len(defaultLatencyBuckets)), }, nil case lookup(EnvKESEndpoint): rawEndpoint := env.Get(EnvKESEndpoint, "") if rawEndpoint == "" {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 15 11:46:39 UTC 2024 - 14.2K bytes - Viewed (0)