- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 110 for testdomain (0.07 seconds)
-
docs/ja/docs/advanced/async-tests.md
``` . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` `main.py` は次のようになります: {* ../../docs_src/async_tests/app_a_py310/main.py *} `test_main.py` は `main.py` のテストを持ち、次のようになります: {* ../../docs_src/async_tests/app_a_py310/test_main.py *} ## 実行 { #run-it } テストはいつも通り次で実行できます: <div class="termy"> ```console $ pytestCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 4.5K bytes - Click Count (0) -
docs/ko/docs/tutorial/testing.md
### 테스트 파일 { #testing-file } 테스트를 위해 `test_main.py`라는 파일을 생성할 수 있습니다. 이 파일은 동일한 Python 패키지(즉, `__init__.py` 파일이 있는 동일한 디렉터리)에 위치할 수 있습니다. ``` hl_lines="5" . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` 파일들이 동일한 패키지에 위치해 있으므로, 상대 임포트를 사용하여 `main` 모듈(`main.py`)에서 `app` 객체를 임포트 해올 수 있습니다. {* ../../docs_src/app_testing/app_a_py310/test_main.py hl[3] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 6.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java
// Test with mock when(mockReferralData.getDomain()).thenReturn(domain); assertEquals(domain, mockReferralData.getDomain()); verify(mockReferralData, times(1)).getDomain(); // Test with concrete implementation String concreteDomain = concreteImplementation.getDomain(); // Should be DOMAIN based on our initializationCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 28.2K bytes - Click Count (0) -
docs/zh/docs/advanced/async-tests.md
``` . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` 文件 `main.py` 将包含: {* ../../docs_src/async_tests/app_a_py310/main.py *} 文件 `test_main.py` 将包含针对 `main.py` 的测试,现在它可能看起来如下: {* ../../docs_src/async_tests/app_a_py310/test_main.py *} ## 运行测试 { #run-it } 您可以通过以下方式照常运行测试: <div class="termy"> ```console $ pytestCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 3.9K bytes - Click Count (0) -
tests/test_tutorial/test_behind_a_proxy/test_tutorial004.py
from fastapi.testclient import TestClient from inline_snapshot import snapshot from docs_src.behind_a_proxy.tutorial004_py310 import app client = TestClient(app) def test_main(): response = client.get("/app") assert response.status_code == 200 assert response.json() == {"message": "Hello World", "root_path": "/api/v1"} def test_openapi_schema(): response = client.get("/openapi.json")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 1.4K bytes - Click Count (0) -
tests/test_deprecated_openapi_prefix.py
app = FastAPI(openapi_prefix="/api/v1") @app.get("/app") def read_main(request: Request): return {"message": "Hello World", "root_path": request.scope.get("root_path")} client = TestClient(app) def test_main(): response = client.get("/app") assert response.status_code == 200 assert response.json() == {"message": "Hello World", "root_path": "/api/v1"} def test_openapi():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 1.3K bytes - Click Count (0) -
tests/test_tutorial/test_async_tests/test_main_a.py
import pytest from docs_src.async_tests.app_a_py310.test_main import test_root @pytest.mark.anyio async def test_async_testing():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 155 bytes - Click Count (0) -
src/cmd/addr2line/addr2line_test.go
package main import ( "bufio" "bytes" "internal/testenv" "os" "path/filepath" "runtime" "strings" "testing" ) // TestMain executes the test binary as the addr2line command if // GO_ADDR2LINETEST_IS_ADDR2LINE is set, and runs the tests otherwise. func TestMain(m *testing.M) { if os.Getenv("GO_ADDR2LINETEST_IS_ADDR2LINE") != "" { main() os.Exit(0) }
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Sep 06 13:23:48 GMT 2024 - 3.2K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/opensearch/config/exentity/DataConfig.java
continue; } final SmbAuthentication smbAuth = new SmbAuthentication(); smbAuth.setDomain(domain == null ? StringUtil.EMPTY : domain); smbAuth.setServer(hostname); if (StringUtil.isNotBlank(port)) { try {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Jan 10 01:38:30 GMT 2026 - 17.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java
response.getServerData().encryptionKeyLength = 8; // Use reflection to set protected byteCount field setByteCount(response, 8); response.getServerData().oemDomainName = "TEST_DOMAIN"; String result = response.toString(); assertNotNull(result); assertTrue(result.contains("SmbComNegotiateResponse")); assertTrue(result.contains("dialectIndex=0"));
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.4K bytes - Click Count (0)