- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 105 for testdomain (0.05 seconds)
-
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/pt/docs/advanced/async-tests.md
``` . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` O arquivo `main.py` teria: {* ../../docs_src/async_tests/app_a_py310/main.py *} O arquivo `test_main.py` teria os testes para para o arquivo `main.py`, ele poderia ficar assim: {* ../../docs_src/async_tests/app_a_py310/test_main.py *} ## Executá-lo { #run-it } Você pode executar os seus testes normalmente via:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 4.3K 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/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) -
docs/zh-hant/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 ---> 100%Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 3.5K bytes - Click Count (0) -
docs/ja/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:07:17 GMT 2026 - 7.1K 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/es/docs/tutorial/testing.md
### Archivo de prueba { #testing-file } Entonces podrías tener un archivo `test_main.py` con tus pruebas. Podría estar en el mismo paquete de Python (el mismo directorio con un archivo `__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:15:55 GMT 2026 - 6.1K bytes - Click Count (0) -
docs/de/docs/tutorial/testing.md
### Testdatei { #testing-file } Dann könnten Sie eine Datei `test_main.py` mit Ihren Tests haben. Sie könnte sich im selben Python-Package befinden (dasselbe Verzeichnis mit einer `__init__.py`-Datei): ``` 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 17:58:09 GMT 2026 - 6.6K bytes - Click Count (0)