Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 4,390 for Get (0.16 sec)

  1. 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():
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

        assertEquals(1L, map.get("1"));
        assertEquals(2L, map.get("2"));
        assertEquals(3L, map.get("3"));
      }
    
      public void testIncrementAndGet() {
        AtomicLongMap<String> map = AtomicLongMap.create();
        String key = "key";
        for (int i = 0; i < ITERATIONS; i++) {
          long before = map.get(key);
          long result = map.incrementAndGet(key);
          long after = map.get(key);
          assertEquals(before + 1, after);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 17.4K bytes
    - Viewed (0)
  3. tests/test_application.py

                    }
                },
                "/query/frozenset": {
                    "get": {
                        "summary": "Get Query Type Frozenset",
                        "operationId": "get_query_type_frozenset_query_frozenset_get",
                        "parameters": [
                            {
                                "required": True,
                                "schema": {
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 52.2K bytes
    - Viewed (0)
  4. tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc

            Multiply(context.get(), combined_value.get(), combined_value.get(),
                     status.get()));
        ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
        std::array<TensorHandlePtr, 2> out_components;
        ExtractPerDeviceValues(context.get(), multiply_result.get(),
                               &out_components, status.get());
        ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 22:09:57 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  5. tests/test_default_response_class_router.py

    @router_a_a.get("/")
    def get_a_a():
        return {"msg": "Hello A A"}
    
    
    @router_a_a.get("/override", response_class=PlainTextResponse)
    def get_a_a_path_override():
        return "Hello A A"
    
    
    @router_a_b_override.get("/")
    def get_a_b():
        return "Hello A B"
    
    
    @router_a_b_override.get("/override", response_class=HTMLResponse)
    def get_a_b_path_override():
        return "Hello A B"
    
    
    @router_b_override.get("/")
    def get_b():
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Mar 01 20:49:20 GMT 2020
    - 5K bytes
    - Viewed (0)
  6. build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/tasks/BuildReceipt.kt

        }
    
        @get:Input
        abstract val version: Property<String>
    
        @get:Input
        abstract val baseVersion: Property<String>
    
        @get:Input
        @get:Optional
        abstract val commitId: Property<String>
    
        @get:Input
        abstract val snapshot: Property<Boolean>
    
        @get:Input
        abstract val promotionBuild: Property<Boolean>
    
        @get:Input
        @get:Optional
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  7. tensorflow/c/eager/parallel_device/parallel_device_test.cc

        if (TF_GetCode(status.get()) != TF_OK) return;
        TFE_OpSetDevice(op.get(), device_name, status.get());
        if (TF_GetCode(status.get()) != TF_OK) return;
    
        TFE_TensorHandle* result_handles;
        int num_retvals = 1;
        TFE_Execute(op.get(), &result_handles, &num_retvals, status.get());
        ASSERT_TRUE(TF_GetCode(status.get()) == TF_INVALID_ARGUMENT)
            << TF_Message(status.get());
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  8. guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

      public void testSubList_get() {
        List<E> list = getList();
        int size = getNumElements();
        List<E> copy = list.subList(0, size);
        List<E> head = list.subList(0, size - 1);
        List<E> tail = list.subList(1, size);
        assertEquals(list.get(0), copy.get(0));
        assertEquals(list.get(size - 1), copy.get(size - 1));
        assertEquals(list.get(1), tail.get(0));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  9. tests/test_starlette_exception.py

    
    client = TestClient(app)
    
    
    def test_get_item():
        response = client.get("/items/foo")
        assert response.status_code == 200, response.text
        assert response.json() == {"item": "The Foo Wrestlers"}
    
    
    def test_get_item_not_found():
        response = client.get("/items/bar")
        assert response.status_code == 404, response.text
        assert response.headers.get("x-error") == "Some custom header"
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 7.4K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/MapGetTester.java

      public void testGet_yes() {
        assertEquals("get(present) should return the associated value", v0(), get(k0()));
      }
    
      public void testGet_no() {
        assertNull("get(notPresent) should return null", get(k3()));
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES)
      public void testGet_nullNotContainedButAllowed() {
        assertNull("get(null) should return null", get(null));
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.9K bytes
    - Viewed (0)
Back to top