- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 3,844 for asset0 (0.22 sec)
-
tests/test_default_response_class_router.py
assert response.headers["content-type"] == json_type def test_router_a_a_override(): with client: response = client.get("/a/a/override") assert response.content == b"Hello A A" assert response.headers["content-type"] == text_type def test_router_a_b(): with client: response = client.get("/a/b") assert response.content == b"Hello A B"
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sun Mar 01 20:49:20 UTC 2020 - 5K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/work/DefaultWorkerLeaseServiceTest.groovy
when: workerLeaseService.withLocks([lock1, lock2]) { assert lock1.lockedState assert lock2.lockedState workerLeaseService.withoutLocks([lock1, lock2], runnable { assert !lock1.lockedState assert !lock2.lockedState assert !lock1.doIsLockedByCurrentThread() assert !lock2.doIsLockedByCurrentThread() executed = true
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 05 16:29:26 UTC 2024 - 4.8K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_image_test.go
_, _, fakeManager, err := createTestRuntimeManager() assert.NoError(t, err) imageRef, err := fakeManager.PullImage(ctx, kubecontainer.ImageSpec{Image: "busybox"}, nil, nil) assert.NoError(t, err) assert.Equal(t, "busybox", imageRef) images, err := fakeManager.ListImages(ctx) assert.NoError(t, err) assert.Equal(t, 1, len(images)) assert.Equal(t, images[0].RepoTags, []string{"busybox"}) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 12.8K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005_an_py310.py
assert response.status_code == 400, response.text assert response.json() == {"detail": "Incorrect username or password"} @needs_py310 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"
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.3K bytes - Viewed (0) -
pkg/kubelet/kubelet_getters_test.go
}) got, err := kubelet.HandlerSupportsUserNamespaces("has-support") assert.Equal(t, true, got) assert.NoError(t, err) got, err = kubelet.HandlerSupportsUserNamespaces("has-no-support") assert.Equal(t, false, got) assert.NoError(t, err) got, err = kubelet.HandlerSupportsUserNamespaces("unknown") assert.Equal(t, false, got) assert.Error(t, err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 09 00:48:07 UTC 2024 - 3.8K bytes - Viewed (0) -
platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/parameters/BuildProgressListenerAdapterForTestOperationsTest.groovy
assert event.eventTime == 999 assert event.displayName == "test suite skipped" assert event.descriptor.name == 'some test suite' assert event.descriptor.jvmTestKind == JvmTestKind.SUITE assert event.descriptor.parent == null assert event.result instanceof TestSkippedResult assert event.result.startTime == 1
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 20.5K bytes - Viewed (0) -
tests/test_tutorial/test_bigger_applications/test_main_an_py39.py
response = client.get("/users?token=jessica") assert response.status_code == 200 assert response.json() == [{"username": "Rick"}, {"username": "Morty"}] @needs_py39 def test_users_with_no_token(client: TestClient): response = client.get("/users") assert response.status_code == 422 assert response.json() == IsDict( { "detail": [ {
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 24.9K bytes - Viewed (0) -
pkg/kubelet/images/image_gc_manager_test.go
_, err := manager.detectImages(ctx, zero) assert := assert.New(t) require.NoError(t, err) assert.Equal(manager.imageRecordsLen(), 3) noContainer, ok := manager.getImageRecordWithRuntimeHandlerInImageCriAPIFeatureGate(imageID(0), testRuntimeHandler) require.True(t, ok) assert.Equal(zero, noContainer.firstDetected) assert.Equal(testRuntimeHandler, noContainer.runtimeHandlerUsedToPullImage) assert.Equal(zero, noContainer.lastUsed)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 15:38:20 UTC 2024 - 29.2K bytes - Viewed (0) -
pkg/ledger/ledger_test.go
getResult, err := l.Get("foo") assert.NoError(t, err) assert.Equal(t, getResult, "baz") getResult, err = l.Get("second") assert.NoError(t, err) assert.Equal(t, getResult, "value") getResult, err = l.GetPreviousValue(firstHash, "foo") assert.NoError(t, err) assert.Equal(t, getResult, "bar") if len(resultHashes) != 3 { t.Fatal("Encountered has collision") } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jul 12 16:12:59 UTC 2023 - 4K bytes - Viewed (0) -
tests/test_tutorial/test_configure_swagger_ui/test_tutorial002.py
def test_swagger_ui(): response = client.get("/docs") assert response.status_code == 200, response.text assert ( '"syntaxHighlight": false' not in response.text ), "not used parameters should not be included" assert ( '"syntaxHighlight.theme": "obsidian"' in response.text ), "parameters with middle dots should be included in a JSON compatible way" assert ( '"dom_id": "#swagger-ui"' in response.text
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Aug 19 19:54:04 UTC 2023 - 1.5K bytes - Viewed (0)