- Sort Score
- Num 10 results
- Language All
Results 151 - 160 of 2,000 for data_ (0.02 seconds)
-
tests/test_dependency_yield_scope_websockets.py
data = websocket.receive_json() assert data["is_open"] is True assert global_state["session_closed"] is True def test_request_scope() -> None: global_context.set({}) global_state = global_context.get() with client.websocket_connect("/request-scope") as websocket: data = websocket.receive_json() assert data["is_open"] is True
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketReaderTest.kt
callback.assertTextMessage("Hello") } @Test fun clientTwoFrameHelloWithPongs() { data.write("010348656c".decodeHex()) // Hel data.write("8a00".decodeHex()) // Pong data.write("8a00".decodeHex()) // Pong data.write("8a00".decodeHex()) // Pong data.write("8a00".decodeHex()) // Pong data.write("80026c6f".decodeHex()) // lo clientReader.processNextFrame() callback.assertPong(EMPTY)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 16:11:23 GMT 2025 - 14.4K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/SessionData.java
import org.apache.maven.api.annotations.ThreadSafe; /** * A container for data that is specific to a session. * All components may use this storage to associate arbitrary data with a session. * <p> * Unlike a cache, this session data is not subject to purging. For this same reason, session data should also not be * abused as a cache (i.e. for storing values that can be re-calculated) to avoid memory exhaustion.
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Feb 28 23:31:09 GMT 2024 - 4.7K bytes - Click Count (0) -
internal/crypto/sse-s3.go
// - We use a KMS -> There must be non-empty key ID and a KMS data key. // - We use a K/V -> There must be no key ID and no KMS data key. // Otherwise, the caller has passed an invalid argument combination. if keyID == "" && len(kmsKey) != 0 { logger.CriticalIf(context.Background(), errors.New("The key ID must not be empty if a KMS data key is present")) } if keyID != "" && len(kmsKey) == 0 {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue May 07 23:55:37 GMT 2024 - 7.6K bytes - Click Count (0) -
internal/event/name_test.go
} for i, testCase := range testCases { data, err := xml.Marshal(testCase.name) expectErr := (err != nil) if expectErr != testCase.expectErr { t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr) } if !testCase.expectErr { if !reflect.DeepEqual(data, testCase.expectedData) {Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed May 01 01:11:10 GMT 2024 - 7.4K bytes - Click Count (0) -
tests/test_dependency_contextmanager.py
assert state["context_a"] == "finished a" def test_background_tasks(): response = client.get("/context_b_bg") data = response.json() assert data["context_b"] == "started b" assert data["context_a"] == "started a" assert data["bg"] == "not set" middleware_state = json.loads(response.headers["x-state"]) assert middleware_state["context_b"] == "started b"
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 11.5K bytes - Click Count (0) -
tests/test_pydantic_v1_error.py
@app.post("/union") def endpoint(data: dict | ModelV1A): # pragma: no cover return data def test_raises_pydantic_v1_model_in_sequence() -> None: class ModelV1A(BaseModel): name: str app = FastAPI() with pytest.raises(PydanticV1NotSupportedError): @app.post("/sequence") def endpoint(data: list[ModelV1A]): # pragma: no coverCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.3K bytes - Click Count (0) -
src/test/java/jcifs/ntlmssp/av/AvPairTest.java
int type2 = AvPair.MsvAvEOL; byte[] raw2 = new byte[] {}; AvPair avPair2 = new AvPair(type2, raw2); assertEquals(type2, avPair2.getType(), "Type should match the constructor argument for empty raw data."); assertArrayEquals(raw2, avPair2.getRaw(), "Raw data should match the constructor argument for empty raw data."); // Test with null raw data int type3 = AvPair.MsvAvFlags;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3K bytes - Click Count (0) -
tests/test_dependency_yield_scope.py
data = response.json() assert data["func_is_open"] is False assert data["req_is_open"] is True def test_sub() -> None: response = client.get("/sub") assert response.status_code == 200 data = response.json() assert data["named_session_open"] is True assert data["session_open"] is True def test_broken_scope() -> None: with pytest.raises(
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 6.7K bytes - Click Count (0) -
tests/test_query_cookie_header_model_extra_params.py
model_config = {"extra": "allow"} @app.get("/query") async def query_model_with_extra(data: Model = Query()): return data @app.get("/header") async def header_model_with_extra(data: Model = Header()): return data @app.get("/cookie") async def cookies_model_with_extra(data: Model = Cookie()): return data def test_query_pass_extra_list(): client = TestClient(app) resp = client.get(Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 2.3K bytes - Click Count (0)