- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 2,432 for testng (0.06 seconds)
-
docs/de/docs/tutorial/testing.md
/// tip | Tipp Wenn Sie in Ihren Tests neben dem Senden von <abbr title="Request – Anfrage: Daten, die der Client zum Server sendet">Requests</abbr> an Ihre FastAPI-Anwendung auch `async`-Funktionen aufrufen möchten (z. B. asynchrone Datenbankfunktionen), werfen Sie einen Blick auf die [Async-Tests](../advanced/async-tests.md) im Handbuch für fortgeschrittene Benutzer. /// ## Tests separieren { #separating-tests }
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) -
TESTING.asciidoc
tests tends to make them hard to debug. Whenever the functionality that is being tested isn't intimately dependent on how Elasticsearch behaves as a cluster, it is recommended to write unit tests or REST tests instead. In short, most new functionality should come with unit tests, and optionally REST tests to test integration. ==== Refactor code to make it easier to test
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Jun 07 13:55:20 GMT 2021 - 32.5K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/testing.md
**FastAPI** 為了方便開發者,也提供與 `starlette.testclient` 相同的 `fastapi.testclient`。但它其實直接來自 Starlette。 /// /// tip 如果你想在測試中呼叫其他 `async` 函式,而不只是對 FastAPI 應用發送請求(例如非同步的資料庫函式),請參考進階教學中的[非同步測試](../advanced/async-tests.md)。 /// ## 分離測試 { #separating-tests } 在真實專案中,你大概會把測試放在不同的檔案中。 你的 **FastAPI** 應用也可能由多個檔案/模組組成,等等。 ### **FastAPI** 應用檔案 { #fastapi-app-file } 假設你的檔案結構如[更大型的應用](bigger-applications.md)所述: ``` . ├── appCreated: 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
**FastAPI** 提供了和 `starlette.testclient` 一样的 `fastapi.testclient`,只是为了方便开发者。但它直接来自Starlette。 /// /// tip | 提示 除了发送请求之外,如果你还想测试时在FastAPI应用中调用 `async` 函数(例如异步数据库函数), 可以在高级教程中看下 [Async Tests](../advanced/async-tests.md) 。 /// ## 分离测试 { #separating-tests } 在实际应用中,你可能会把你的测试放在另一个文件里。 您的**FastAPI**应用程序也可能由一些文件/模块组成等等。 ### **FastAPI** app 文件 { #fastapi-app-file } 假设你有一个像[更大的应用](bigger-applications.md)中所描述的文件结构: ```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/fr/docs/tutorial/testing.md
Si vous souhaitez appeler des fonctions `async` dans vos tests en dehors de l’envoi de requêtes à votre application FastAPI (par exemple des fonctions de base de données asynchrones), consultez les [Tests asynchrones](../advanced/async-tests.md) dans le tutoriel avancé. /// ## Séparer les tests { #separating-tests } Dans une application réelle, vous auriez probablement vos tests dans un fichier différent.
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) -
docs/ja/docs/tutorial/testing.md
/// /// tip FastAPIアプリケーションへのリクエストの送信とは別に、テストで `async` 関数 (非同期データベース関数など) を呼び出したい場合は、高度なチュートリアルの[Async Tests](../advanced/async-tests.md) を参照してください。 /// ## テストの分離 { #separating-tests } 実際のアプリケーションでは、おそらくテストを別のファイルに保存します。 また、**FastAPI** アプリケーションは、複数のファイル/モジュールなどで構成されている場合もあります。 ### **FastAPI** アプリファイル { #fastapi-app-file }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/ko/docs/tutorial/testing.md
/// /// tip | 팁 FastAPI 애플리케이션에 요청을 보내는 것 외에도 테스트에서 `async` 함수를 호출하고 싶다면 (예: 비동기 데이터베이스 함수), 심화 튜토리얼의 [비동기 테스트](../advanced/async-tests.md)를 참조하세요. /// ## 테스트 분리하기 { #separating-tests } 실제 애플리케이션에서는 테스트를 별도의 파일로 나누는 경우가 많습니다. 그리고 **FastAPI** 애플리케이션도 여러 파일이나 모듈 등으로 구성될 수 있습니다. ### **FastAPI** app 파일 { #fastapi-app-file }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) -
docs/en/docs/advanced/testing-dependencies.md
# Testing Dependencies with Overrides { #testing-dependencies-with-overrides } ## Overriding dependencies during testing { #overriding-dependencies-during-testing } There are some scenarios where you might want to override a dependency during testing. You don't want the original dependency to run (nor any of the sub-dependencies it might have).Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Aug 31 09:15:41 GMT 2025 - 2.4K bytes - Click Count (0) -
docs/ru/docs/advanced/testing-websockets.md
# Тестирование WebSocket { #testing-websockets } Вы можете использовать тот же `TestClient` для тестирования WebSocket. Для этого используйте `TestClient` с менеджером контекста `with`, подключаясь к WebSocket: {* ../../docs_src/app_testing/tutorial002_py310.py hl[27:31] *} /// note | Примечание Подробности смотрите в документации Starlette по [тестированию WebSocket](https://www.starlette.dev/testclient/#testing-websocket-sessions).Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 607 bytes - Click Count (0) -
docs/zh-hant/docs/advanced/testing-websockets.md
# 測試 WebSocket { #testing-websockets } 你可以使用相同的 `TestClient` 來測試 WebSocket。 為此,你可以在 `with` 陳述式中使用 `TestClient`,連線到該 WebSocket: {* ../../docs_src/app_testing/tutorial002_py310.py hl[27:31] *} /// note | 注意 想了解更多,請參考 Starlette 的[測試 WebSocket](https://www.starlette.dev/testclient/#testing-websocket-sessions)文件。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 420 bytes - Click Count (0)