- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 89 for apitesting (0.21 sec)
-
pkg/controller/volume/persistentvolume/framework_test.go
type testCall func(ctrl *PersistentVolumeController, reactor *pvtesting.VolumeReactor, test controllerTest) error const testNamespace = "default" const mockPluginName = "kubernetes.io/mock-volume" var novolumes []*v1.PersistentVolume var noclaims []*v1.PersistentVolumeClaim var noevents = []string{} var noerrors = []pvtesting.ReactorError{} type volumeReactor struct { *pvtesting.VolumeReactor ctrl *PersistentVolumeController }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 01 09:54:00 UTC 2023 - 38.3K bytes - Viewed (0) -
docs/de/docs/advanced/testing-websockets.md
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 30 20:17:48 UTC 2024 - 522 bytes - Viewed (0) -
tests/test_tutorial/test_testing/test_main_b_py310.py
from ...utils import needs_py310 @needs_py310 def test_app(): from docs_src.app_testing.app_b_py310 import test_main test_main.test_create_existing_item() test_main.test_create_item() test_main.test_create_item_bad_token() test_main.test_read_nonexistent_item() test_main.test_read_item()
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 357 bytes - Viewed (0) -
tests/test_tutorial/test_testing/test_main.py
from docs_src.app_testing.test_main import client, test_read_main def test_main(): test_read_main() def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/": { "get": {
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 819 bytes - Viewed (0) -
docs/zh/docs/advanced/testing-events.md
# 测试事件:启动 - 关闭 使用 `TestClient` 和 `with` 语句,在测试中运行事件处理器(`startup` 与 `shutdown`)。 ```Python hl_lines="9-12 20-24" {!../../../docs_src/app_testing/tutorial003.py!}
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sun Jan 28 18:21:02 UTC 2024 - 228 bytes - Viewed (0) -
docs/en/docs/advanced/testing-events.md
# Testing Events: startup - shutdown When you need your event handlers (`startup` and `shutdown`) to run in your tests, you can use the `TestClient` with a `with` statement: ```Python hl_lines="9-12 20-24" {!../../../docs_src/app_testing/tutorial003.py!}
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Aug 29 14:02:58 UTC 2020 - 262 bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/provision_test.go
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" corelisters "k8s.io/client-go/listers/core/v1" "k8s.io/client-go/tools/cache" "k8s.io/component-helpers/storage/volume" api "k8s.io/kubernetes/pkg/apis/core" pvtesting "k8s.io/kubernetes/pkg/controller/volume/persistentvolume/testing" ) var class1Parameters = map[string]string{ "param1": "value1", } var class2Parameters = map[string]string{ "param2": "value2", }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 35.3K bytes - Viewed (0) -
tests/test_tutorial/test_testing/test_tutorial002.py
from docs_src.app_testing.tutorial002 import test_read_main, test_websocket def test_main(): test_read_main() def test_ws():
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jul 10 09:08:19 UTC 2020 - 154 bytes - Viewed (0) -
tests/test_tutorial/test_testing/test_main_b_an.py
from docs_src.app_testing.app_b_an import test_main def test_app(): test_main.test_create_existing_item() test_main.test_create_item() test_main.test_create_item_bad_token() test_main.test_read_nonexistent_item() test_main.test_read_item()
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 303 bytes - Viewed (0) -
docs/de/docs/advanced/testing-events.md
Wenn Sie in Ihren Tests Ihre Event-Handler (`startup` und `shutdown`) ausführen wollen, können Sie den `TestClient` mit einer `with`-Anweisung verwenden: ```Python hl_lines="9-12 20-24" {!../../../docs_src/app_testing/tutorial003.py!}
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 30 20:17:40 UTC 2024 - 291 bytes - Viewed (0)