- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for test_zh (0.07 sec)
-
tests/test_additional_responses_router.py
app.include_router(router) client = TestClient(app) def test_a(): response = client.get("/a") assert response.status_code == 200, response.text assert response.json() == "a" def test_b(): response = client.get("/b") assert response.status_code == 200, response.text assert response.json() == "b" def test_c(): response = client.get("/c")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 5.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/DocMapTest.java
Map<String, Object> value = new LinkedHashMap<>(); DocMap docMap = new DocMap(value); assertTrue(docMap.isEmpty()); value.clear(); List<String> keys = Arrays.asList("test_2", "test_0", "lang", "test_1"); value.put(keys.get(0), true); value.put(keys.get(1), 1000); value.put(keys.get(2), "ja"); value.put(keys.get(3), "str"); docMap = new DocMap(value);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 1.5K bytes - Viewed (0) -
fess-crawler/src/test/resources/extractor/msoffice/test_as.xlsx
Shinsuke Sugaya <******@****.***> 1444529815 +0900
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Sun Oct 11 02:16:55 UTC 2015 - 9K bytes - Viewed (0) -
fess-crawler/src/test/resources/extractor/test_ns.xml
Shinsuke Sugaya <******@****.***> 1444529815 +0900
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Sun Oct 11 02:16:55 UTC 2015 - 707 bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/JodExtractorTest.java
assertTrue(content.contains("テスト")); } public void test_getText_ooow_as() { InputStream in = ResourceUtil.getResourceAsStream("extractor/ooo/test_as.odt"); Map<String, String> params = new HashMap<String, String>(); params.put("resourceName", "test_as.odt"); ExtractData extractData = jodExtractor.getText(in, params); String content = extractData.getContent(); CloseableUtil.closeQuietly(in);
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 9.5K bytes - Viewed (0) -
tests/test_tutorial/test_testing/test_tutorial002.py
from docs_src.app_testing.tutorial002 import test_read_main, test_websocket def test_main(): test_read_main() def test_ws():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 10 09:08:19 UTC 2020 - 154 bytes - Viewed (0) -
tensorflow/c/eager/gradients_test.cc
} }; absl::Status RegisterGradients(GradientRegistry* registry) { TF_RETURN_IF_ERROR(RegisterNotDifferentiable(registry, "CheckNumerics")); return absl::OkStatus(); } TEST_P(CppGradients, TestSetAttrString) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); AbstractContextPtr ctx; { AbstractContext* ctx_raw = nullptr;
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/c/eager/gradient_checker_test.cc
} AbstractContextPtr ctx_; public: bool UseMlir() const { return strcmp(std::get<0>(GetParam()), "mlir") == 0; } bool UseFunction() const { return std::get<2>(GetParam()); } }; TEST_P(GradientCheckerTest, TestMatMul) { float A_vals[] = {1.0f, 2.0f, 3.0f, 4.0f}; int64_t A_dims[] = {2, 2}; AbstractTensorHandlePtr A; { AbstractTensorHandle* A_raw;
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 6.5K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/PdfExtractorTest.java
}); pdfExtractor = container.getComponent("pdfExtractor"); pdfExtractorForPdfPassword = container.getComponent("pdfExtractorForPdfPassword"); pdfExtractorForPdfPassword.addPassword(".*test_.*.pdf", "word"); } public void test_getText() { final InputStream in = ResourceUtil.getResourceAsStream("extractor/test.pdf"); final ExtractData extractData = pdfExtractor.getText(in, null);
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 7.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/testing.md
要使用 `TestClient`,先要安装 <a href="https://www.python-httpx.org" class="external-link" target="_blank">`httpx`</a>. 例:`pip install httpx`. /// 导入 `TestClient`. 通过传入你的**FastAPI**应用创建一个 `TestClient` 。 创建名字以 `test_` 开头的函数(这是标准的 `pytest` 约定)。 像使用 `httpx` 那样使用 `TestClient` 对象。 为你需要检查的地方用标准的Python表达式写个简单的 `assert` 语句(重申,标准的`pytest`)。 ```Python hl_lines="2 12 15-18" {!../../docs_src/app_testing/tutorial001.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6K bytes - Viewed (0)