- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 90 for get_main (0.07 seconds)
-
docs/ru/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 } Вы можете запустить свои тесты как обычно:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 6.2K bytes - Click Count (0) -
docs/tr/docs/tutorial/testing.md
### Test Dosyası { #testing-file } Sonra testlerinizin olduğu bir `test_main.py` dosyanız olabilir. Bu dosya aynı Python package içinde (yani `__init__.py` dosyası olan aynı dizinde) durabilir: ``` hl_lines="5" . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ```Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 6.3K bytes - Click Count (0) -
docs/uk/docs/tutorial/testing.md
{* ../../docs_src/app_testing/app_a_py310/main.py *} ### Файл тестування { #testing-file } Ви можете створити файл `test_main.py` з вашими тестами. Він може знаходитися в тому ж пакеті Python (у тій самій директорії з файлом `__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:27:41 GMT 2026 - 8.6K bytes - Click Count (0) -
docs/en/docs/tutorial/testing.md
{* ../../docs_src/app_testing/app_a_py310/main.py *} ### Testing file { #testing-file } Then you could have a file `test_main.py` with your tests. It could live on the same Python package (the same directory with a `__init__.py` file): ``` hl_lines="5" . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ```Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 5.7K bytes - Click Count (0) -
docs/uk/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">Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 5.9K bytes - Click Count (0) -
docs/zh-hant/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 17:05:38 GMT 2026 - 5.6K bytes - Click Count (0) -
docs/zh/docs/tutorial/testing.md
### 测试文件 { #testing-file } 然后你会有一个包含测试的文件 `test_main.py` 。app可以像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] *} ...然后测试代码和之前一样的。 ## 测试:扩展示例 { #testing-extended-example }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 5.4K bytes - Click Count (0) -
docs/ru/docs/tutorial/testing.md
Также у Вас может быть файл `test_main.py` содержащий тесты. Он может находиться в том же Python-пакете (в той же директории с файлом `__init__.py`): ``` hl_lines="5" . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` Так как оба файла находятся в одной директории, для импорта объекта приложения из файла `main` в файл `test_main` Вы можете использовать относительный импорт:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 9.5K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/NtlmContextTest.java
} @Test void testInitSecContext_state1_type1Message() throws Exception { // Test the first step of context initialization (creating Type 1 message) when(mockAuth.getDomain()).thenReturn(domain); NtlmContext context = new NtlmContext(mockAuth, true); byte[] type1Token = context.initSecContext(new byte[0], 0, 0); assertNotNull(type1Token);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.9K bytes - Click Count (0) -
src/test/java/jcifs/DfsReferralDataTest.java
void testGetDomain() { // Given String domain = "TESTDOMAIN"; when(mockReferralData.getDomain()).thenReturn(domain); // When String result = mockReferralData.getDomain(); // Then assertEquals(domain, result); verify(mockReferralData).getDomain(); } @Test @DisplayName("Should get share") void testGetShare() { // Given
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.1K bytes - Click Count (0)