Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 61 for test_app (0.14 sec)

  1. tests/test_tutorial/test_request_forms_and_files/test_tutorial001_an.py

    import pytest
    from dirty_equals import IsDict
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(name="app")
    def get_app():
        from docs_src.request_forms_and_files.tutorial001_an import app
    
        return app
    
    
    @pytest.fixture(name="client")
    def get_client(app: FastAPI):
        client = TestClient(app)
        return client
    
    
    def test_post_form_no_body(client: TestClient):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/JoinerTest.java

      }
    
      public void test_useForNull_twice() {
        Joiner j = Joiner.on("x").useForNull("y");
        assertThrows(UnsupportedOperationException.class, () -> j.useForNull("y"));
      }
    
      public void testMap() {
        MapJoiner j = Joiner.on(';').withKeyValueSeparator(':');
        assertEquals("", j.join(ImmutableMap.of()));
        assertEquals(":", j.join(ImmutableMap.of("", "")));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/lang/GenericsUtilTest.java

            assertThat(WildcardType.class.isInstance(GenericsUtil.getElementTypeOfSet(t3)), is(true));
        }
    
        /**
         * @throws Exception
         */
        public void testMap() throws Exception {
            final Method m1 = MapType.class.getMethod("mapOfStringToObject");
            final Type t1 = m1.getGenericReturnType();
            assertThat(GenericsUtil.isTypeOf(t1, Map.class), is(true));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_test.cc

      string api_def_overwrites = R"(op: <
      graph_op_name: "TestCApi"
      summary: "New summary"
    >
    )";
      status = TF_NewStatus();
      TF_ApiDefMapPut(api_def_map, api_def_overwrites.c_str(),
                      api_def_overwrites.size(), status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TF_DeleteStatus(status);
    
      string op_name = "TestCApi";
      status = TF_NewStatus();
      auto* api_def_buf =
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 97K bytes
    - Viewed (0)
  5. tensorflow/BUILD

        ],
        output_dir = "_api/v1/",
        output_files = TENSORFLOW_API_INIT_FILES_V1,
        output_package = "tensorflow._api.v1",
        packages_to_ignore = ["tensorflow.python.framework.test_ops"],
        root_file_name = "v1.py",
        root_init_template = "api_template_v1.__init__.py",
    )
    
    generate_apis(
        name = "tf_python_api_gen_v2",
        api_packages_file_name = "api_packages.txt",
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Oct 16 05:28:35 UTC 2024
    - 53.5K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

        assertFreshInstance(new TypeToken<Collection<String>>() {});
      }
    
      public void testIterable() {
        assertFreshInstance(new TypeToken<Iterable<String>>() {});
      }
    
      public void testMap() {
        assertFreshInstance(new TypeToken<Map<String, ?>>() {});
      }
    
      public void testHashMap() {
        assertFreshInstance(new TypeToken<HashMap<String, ?>>() {});
      }
    
      public void testLinkedHashMap() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 17.2K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

        assertFreshInstance(new TypeToken<Collection<String>>() {});
      }
    
      public void testIterable() {
        assertFreshInstance(new TypeToken<Iterable<String>>() {});
      }
    
      public void testMap() {
        assertFreshInstance(new TypeToken<Map<String, ?>>() {});
      }
    
      public void testHashMap() {
        assertFreshInstance(new TypeToken<HashMap<String, ?>>() {});
      }
    
      public void testLinkedHashMap() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 18.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/FilesTest.java

        String i18nHash = "7fa826962ce2079c8334cd4ebf33aea4";
        assertEquals(i18nHash, Files.hash(i18nFile, Hashing.md5()).toString());
      }
    
      public void testMap() throws IOException {
        // Test data
        int size = 1024;
        byte[] bytes = newPreFilledByteArray(size);
    
        // Setup
        File file = createTempFile();
        Files.write(bytes, file);
    
        // Test
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/FilesTest.java

        String i18nHash = "7fa826962ce2079c8334cd4ebf33aea4";
        assertEquals(i18nHash, Files.hash(i18nFile, Hashing.md5()).toString());
      }
    
      public void testMap() throws IOException {
        // Test data
        int size = 1024;
        byte[] bytes = newPreFilledByteArray(size);
    
        // Setup
        File file = createTempFile();
        Files.write(bytes, file);
    
        // Test
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  10. src/bytes/bytes_test.go

    	const step = 13
    	if r >= 'a' && r <= 'z' {
    		return ((r - 'a' + step) % 26) + 'a'
    	}
    	if r >= 'A' && r <= 'Z' {
    		return ((r - 'A' + step) % 26) + 'A'
    	}
    	return r
    }
    
    func TestMap(t *testing.T) {
    	// Run a couple of awful growth/shrinkage tests
    	a := tenRunes('a')
    
    	// 1.  Grow. This triggers two reallocations in Map.
    	maxRune := func(r rune) rune { return unicode.MaxRune }
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 19 19:09:04 UTC 2024
    - 61.2K bytes
    - Viewed (0)
Back to top