Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 77 for get_main (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. 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
    $ pytest
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  2. src/test/java/jcifs/ntlmssp/Type3MessageTest.java

            // When
            Type3Message parsed = new Type3Message(messageBytes);
    
            // Then
            // Note: getType() method does not exist, so we cannot compare message types
            assertEquals(original.getDomain(), parsed.getDomain());
            assertEquals(original.getUser(), parsed.getUser());
            assertEquals(original.getWorkstation(), parsed.getWorkstation());
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.3K bytes
    - Click Count (0)
  3. 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)
  4. 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
    $ pytest
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  5. 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 initialization
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 28.2K bytes
    - Click Count (0)
  6. 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)
  7. tests/test_tutorial/test_behind_a_proxy/test_tutorial002.py

    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from docs_src.behind_a_proxy.tutorial002_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():
        response = client.get("/openapi.json")
        assert response.status_code == 200
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  8. tests/test_tutorial/test_behind_a_proxy/test_tutorial001.py

    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from docs_src.behind_a_proxy.tutorial001_py310 import app
    
    client = TestClient(app, root_path="/api/v1")
    
    
    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():
        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.2K bytes
    - Click Count (0)
  9. tests/test_tutorial/test_behind_a_proxy/test_tutorial003.py

    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from docs_src.behind_a_proxy.tutorial003_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.5K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/dfs/DfsReferralDataImpl.java

        }
    
        @Override
        public int getPathConsumed() {
            return this.pathConsumed;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.DfsReferralData#getDomain()
         */
        @Override
        public String getDomain() {
            return this.domain;
        }
    
        /**
         * Set the domain for this referral
         *
         * @param domain
         *            the domain to set
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 11.7K bytes
    - Click Count (0)
Back to Top