Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for 456 (0.09 sec)

  1. tests/test_tutorial/test_cookie_param_models/test_tutorial001.py

        with client as c:
            c.cookies.set("session_id", "123")
            c.cookies.set("fatebook_tracker", "456")
            c.cookies.set("googall_tracker", "789")
            response = c.get("/items/")
        assert response.status_code == 200
        assert response.json() == {
            "session_id": "123",
            "fatebook_tracker": "456",
            "googall_tracker": "789",
        }
    
    
    def test_cookie_param_model_defaults(client: TestClient):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. tests/test_typing_python39.py

    from fastapi.testclient import TestClient
    
    from .utils import needs_py310
    
    
    @needs_py310
    def test_typing():
        types = {
            list[int]: [1, 2, 3],
            dict[str, list[int]]: {"a": [1, 2, 3], "b": [4, 5, 6]},
            set[int]: [1, 2, 3],  # `set` is converted to `list`
            tuple[int, ...]: [1, 2, 3],  # `tuple` is converted to `list`
        }
        for test_type, expect in types.items():
            app = FastAPI()
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 709 bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/helper/ViewHelperTest.java

        }
    
        public void test_replaceHighlightQueries() {
            String text;
            String[] queries;
    
            text = "<a>123<b>456<c>";
            queries = new String[] { "123", "456" };
            assertEquals("<a><strong>123</strong><b><strong>456</strong><c>", viewHelper.replaceHighlightQueries(text, queries));
    
            text = "<123><456>";
            queries = new String[] { "123", "456" };
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_cookie_param_models/test_tutorial002.py

        with client as c:
            c.cookies.set("session_id", "123")
            c.cookies.set("fatebook_tracker", "456")
            c.cookies.set("googall_tracker", "789")
            response = c.get("/items/")
        assert response.status_code == 200
        assert response.json() == {
            "session_id": "123",
            "fatebook_tracker": "456",
            "googall_tracker": "789",
        }
    
    
    def test_cookie_param_model_defaults(client: TestClient):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        assertFalse(set.equals(Sets.newTreeSet(asList(4, 5, 6))));
        assertNotEqualLenient(Sets.newTreeSet(asList(4, 5, 6)), set);
      }
    
      public void testEquals_bothExplicitOrdering_stringVsInt() {
        SortedSet<String> set = of("in", "the", "a");
        assertFalse(set.equals(Sets.newTreeSet(asList(4, 5, 6))));
        assertNotEqualLenient(Sets.newTreeSet(asList(4, 5, 6)), set);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/WholeOperationTimeoutTest.kt

            .url(server.url("/"))
            .build()
        val timeoutClient =
          client.newBuilder()
            .callTimeout(Duration.ofMillis(456))
            .build()
        val call = timeoutClient.newCall(request)
        assertThat(call.timeout().timeoutNanos())
          .isEqualTo(TimeUnit.MILLISECONDS.toNanos(456))
      }
    
      @Test
      fun timeoutWritingRequest() {
        server.enqueue(MockResponse())
        val request =
          Request.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

        FluentIterable<Integer> result =
            FluentIterable.<Integer>from(asList(1, 2, 3)).append(Lists.newArrayList(4, 5, 6));
        assertEquals(asList(1, 2, 3, 4, 5, 6), Lists.newArrayList(result));
        assertEquals("[1, 2, 3, 4, 5, 6]", result.toString());
    
        result = FluentIterable.<Integer>from(asList(1, 2, 3)).append(4, 5, 6);
        assertEquals(asList(1, 2, 3, 4, 5, 6), Lists.newArrayList(result));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/QuantilesTest.java

      }
    
      public void testScale_index_computeInPlace_explicitVarargs() {
        assertThat(Quantiles.scale(10).index(5).computeInPlace(78.9, 12.3, 45.6))
            .isWithin(ALLOWED_ERROR)
            .of(45.6);
      }
    
      public void testScale_indexes_varargs_compute_doubleCollection() {
        // Note that we specify index 1 twice, which by the method contract should be ignored.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 29.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

      @GwtIncompatible // fairly slow (~50s)
      public void testPartition_general() {
        new IteratorTester<List<Integer>>(
            5,
            IteratorFeature.UNMODIFIABLE,
            ImmutableList.of(asList(1, 2, 3), asList(4, 5, 6), asList(7)),
            IteratorTester.KnownOrder.KNOWN_ORDER) {
          @Override
          protected Iterator<List<Integer>> newTargetIterator() {
            Iterator<Integer> source = Iterators.forArray(1, 2, 3, 4, 5, 6, 7);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  10. tensorflow/c/eager/c_api_test_util.cc

      TF_DeleteStatus(status);
    
      TFE_OpSetAttrType(op, "T", TFE_TensorHandleDataType(in));
      TFE_OpSetAttrInt(op, "group_size", group_size);
      TFE_OpSetAttrInt(op, "group_key", 123);
      TFE_OpSetAttrInt(op, "instance_key", 456);
      TFE_OpSetAttrString(op, "merge_op", "Add", 3);
      TFE_OpSetAttrString(op, "final_op", "Id", 2);
      std::vector<int64_t> subdiv_offsets;
      TFE_OpSetAttrIntList(op, "subdiv_offsets", subdiv_offsets.data(),
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 23.5K bytes
    - Viewed (0)
Back to top