Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 94 for get_main (0.07 seconds)

  1. docs/fr/docs/tutorial/testing.md

    ### Fichier de test { #testing-file }
    
    Vous pourriez alors avoir un fichier `test_main.py` avec vos tests. Il pourrait vivre dans le même package Python (le même répertoire avec un fichier `__init__.py`) :
    
    ``` hl_lines="5"
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  2. docs/es/docs/advanced/async-tests.md

    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    El archivo `main.py` tendría:
    
    {* ../../docs_src/async_tests/app_a_py310/main.py *}
    
    El archivo `test_main.py` tendría los tests para `main.py`, podría verse así ahora:
    
    {* ../../docs_src/async_tests/app_a_py310/test_main.py *}
    
    ## Ejecútalo { #run-it }
    
    Puedes ejecutar tus tests como de costumbre vía:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 4K bytes
    - Click Count (0)
  3. docs/fr/docs/advanced/async-tests.md

    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    Le fichier `main.py` contiendrait :
    
    {* ../../docs_src/async_tests/app_a_py310/main.py *}
    
    Le fichier `test_main.py` contiendrait les tests pour `main.py`, il pourrait maintenant ressembler à ceci :
    
    {* ../../docs_src/async_tests/app_a_py310/test_main.py *}
    
    ## Exécuter { #run-it }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb1/smb1/NtlmPasswordAuthenticationTest.java

            assertEquals("user", auth.getUsername());
            assertEquals("password", auth.getPassword());
        }
    
        // Test constructor with user info string without password
        @Test
        void testConstructorWithUserInfoNoPassword() {
            NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("DOMAIN;user");
            assertEquals("DOMAIN", auth.getDomain());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java

        class PropertyTests {
    
            @Test
            @DisplayName("Should get and set domain")
            void testDomain() {
                assertNull(referralData.getDomain());
                referralData.setDomain("EXAMPLE.COM");
                assertEquals("EXAMPLE.COM", referralData.getDomain());
            }
    
            @Test
            @DisplayName("Should get and set link")
            void testLink() {
                assertNull(referralData.getLink());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 30.6K bytes
    - Click Count (0)
Back to Top