- Sort Score
- Result 10 results
- Languages All
Results 681 - 690 of 1,949 for clients (0.07 sec)
-
tests/test_tutorial/test_dependencies/test_tutorial004_py310.py
), ], ) def test_get(path, expected_status, expected_response, client: TestClient): response = client.get(path) assert response.status_code == expected_status assert response.json() == expected_response @needs_py310 def test_openapi_schema(client: TestClient): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 5.6K bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial003_01_py310.py
from fastapi.testclient import TestClient from ...utils import needs_py310 @pytest.fixture(name="client") def get_client(): from docs_src.response_model.tutorial003_01_py310 import app client = TestClient(app) return client @needs_py310 def test_post_user(client: TestClient): response = client.post( "/user/", json={ "username": "foo", "password": "fighter",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Aug 04 20:47:07 UTC 2023 - 5.8K bytes - Viewed (0) -
tests/test_tutorial/test_query_params_str_validations/test_tutorial014_an.py
from docs_src.query_params_str_validations.tutorial014_an import app client = TestClient(app) def test_hidden_query(): response = client.get("/items?hidden_query=somevalue") assert response.status_code == 200, response.text assert response.json() == {"hidden_query": "somevalue"} def test_no_hidden_query(): response = client.get("/items") 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 - 2.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/LoomTest.kt
@RegisterExtension val clientTestRule = OkHttpClientTestRule() private lateinit var server: MockWebServer private lateinit var client: OkHttpClient @BeforeEach fun setUp(server: MockWebServer) { platform.assumeLoom() this.server = server client = clientTestRule.newClientBuilder() .dispatcher(Dispatcher(newVirtualThreadPerTaskExecutor())) .build() }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2K bytes - Viewed (0) -
tests/test_tutorial/test_header_params/test_tutorial003_an.py
], ) def test(path, headers, expected_status, expected_response): response = client.get(path, headers=headers) assert response.status_code == expected_status assert response.json() == expected_response def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200 assert response.json() == { "openapi": "3.1.0",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 4.1K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt
) } fun newRoutePlanner( client: OkHttpClient, address: Address = newAddress(), ): RealRoutePlanner { val call = RealCall(client, Request(address.url), forWebSocket = false) val chain = newChain(call) return RealRoutePlanner( taskRunner = client.taskRunner, connectionPool = client.connectionPool.delegate, readTimeoutMillis = client.readTimeoutMillis,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 7.7K bytes - Viewed (0) -
tests/test_tutorial/test_background_tasks/test_tutorial001.py
import os from pathlib import Path from fastapi.testclient import TestClient from docs_src.background_tasks.tutorial001 import app client = TestClient(app) def test(): log = Path("log.txt") if log.is_file(): os.remove(log) # pragma: no cover response = client.post("/send-notification/******@****.***") assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Jul 09 18:06:12 UTC 2020 - 578 bytes - Viewed (0) -
cni/pkg/plugin/kubernetes.go
// Create the client return kubernetes.NewForConfig(config) } // getK8sPodInfo returns information of a POD func getK8sPodInfo(client kubernetes.Interface, podName, podNamespace string) (*PodInfo, error) { pod, err := client.CoreV1().Pods(podNamespace).Get(context.TODO(), podName, metav1.GetOptions{}) if err != nil { return nil, err }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 01 18:38:14 UTC 2024 - 3.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComTreeConnectAndX.java
if(( s = Config.getProperty( "jcifs.smb1.smb.client.TreeConnectAndX.CheckDirectory" )) != null ) { batchLimits[0] = Byte.parseByte( s ); } if(( s = Config.getProperty( "jcifs.smb1.smb.client.TreeConnectAndX.CreateDirectory" )) != null ) { batchLimits[2] = Byte.parseByte( s ); } if(( s = Config.getProperty( "jcifs.smb1.smb.client.TreeConnectAndX.Delete" )) != null ) {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 6.8K bytes - Viewed (0) -
tests/test_tutorial/test_openapi_webhooks/test_tutorial001.py
from docs_src.openapi_webhooks.tutorial001 import app client = TestClient(app) def test_get(): response = client.get("/users/") assert response.status_code == 200, response.text assert response.json() == ["Rick", "Morty"] def test_dummy_webhook(): # Just for coverage app.webhooks.routes[0].endpoint({}) def test_openapi_schema(): response = client.get("/openapi.json")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Oct 20 09:00:44 UTC 2023 - 4.4K bytes - Viewed (0)