- Sort Score
- Num 10 results
- Language All
Results 2631 - 2640 of 4,168 for get (0.03 seconds)
-
tests/test_deprecated_responses.py
@app.get("/items") def get_items() -> Item: return Item(name="widget", price=9.99) return app def test_orjson_response_returns_correct_data(): app = _make_orjson_app() client = TestClient(app) with warnings.catch_warnings(): warnings.simplefilter("ignore", FastAPIDeprecationWarning) response = client.get("/items")Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 22 16:34:59 GMT 2026 - 2K bytes - Click Count (0) -
tests/test_router_events.py
app = FastAPI(lifespan=lifespan) @app.get("/") def main() -> dict[str, str]: return {"message": "Hello World"} assert state.app_startup is False assert state.app_shutdown is False with TestClient(app) as client: assert state.app_startup is True assert state.app_shutdown is False response = client.get("/") assert response.status_code == 200, response.textCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 11.7K bytes - Click Count (0) -
tests/test_response_code_no_body.py
status: str title: str class JsonApiError(BaseModel): errors: list[Error] @app.get( "/a", status_code=204, response_class=JsonApiResponse, responses={500: {"description": "Error", "model": JsonApiError}}, ) async def a(): pass @app.get("/b", responses={204: {"description": "No Content"}}) async def b(): pass # pragma: no coverCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 3.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java
byte actualFileInfoClass = (byte) fileInfoClassField.get(request); assertEquals(testFileInfoClass, actualFileInfoClass); Field infoTypeField = Smb2QueryInfoRequest.class.getDeclaredField("infoType"); infoTypeField.setAccessible(true); byte actualInfoType = (byte) infoTypeField.get(request); assertEquals(Smb2Constants.SMB2_0_INFO_FILE, actualInfoType);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 22.6K bytes - Click Count (0) -
src/test/java/org/codelibs/core/io/SerializeUtilTest.java
final List<String> result = (List<String>) SerializeUtil.fromBinaryToObject(binary); assertEquals(3, result.size()); assertEquals("first", result.get(0)); assertNull(result.get(1)); assertEquals("third", result.get(2)); } /** * Test helper class for serialization tests */ public static class TestSerializableClass implements Serializable {
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 7.6K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/aether/LegacyRepositorySystemSessionExtender.java
p.setUserName(authCtx.get(AuthenticationContext.USERNAME)); p.setPassword(authCtx.get(AuthenticationContext.PASSWORD)); p.setNtlmDomain(authCtx.get(AuthenticationContext.NTLM_DOMAIN)); p.setNtlmHost(authCtx.get(AuthenticationContext.NTLM_WORKSTATION)); authCtx.close(); }
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 6.7K bytes - Click Count (0) -
tests/test_get_request_body.py
name: str description: str = None # type: ignore price: float @app.get("/product") async def create_item(product: Product): return product client = TestClient(app) def test_get_with_body(): body = {"name": "Foo", "description": "Some description", "price": 5.5} response = client.request("GET", "/product", json=body) assert response.json() == body def test_openapi_schema():Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 4.2K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/vagrant/VagrantExtension.java
@Input public String getBox() { return box.get(); } public void setBox(String box) { // TODO: should verify this against the Vagrantfile, but would need to do so in afterEvaluate once vagrantfile is unmodifiable this.box.set(box); } @Input public Map<String, Object> getHostEnv() { return hostEnv.get(); } public void hostEnv(String name, Object value) {Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 2.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessActionAdjustmentProviderTest.java
provider.adjustActionResponseHeaders("application/xml", (k, v) -> headerMap.put(k, v)); assertEquals(2, headerMap.size()); assertEquals("def", headerMap.get("X-Def")); assertEquals("def2", headerMap.get("X-Def2")); } @Test public void test_write_defaultAndSpecificHtml() throws Exception {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/graph/MapCacheTest.java
assertThat(mapCache.get(key)).isEqualTo(key + "_value"); } } @Test public void testPutNewValue() { assertThat(mapCache.put("key", "value")).isNull(); assertThat(mapCache.get("key")).isEqualTo("value"); // ensure key/value is cached assertThat(mapCache.put("key", "new value")).isEqualTo("value"); assertThat(mapCache.get("key")).isEqualTo("new value"); } @Test
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 3.2K bytes - Click Count (0)