- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for assertj (0.31 sec)
-
docs/en/docs/tutorial/testing.md
Create functions with a name that starts with `test_` (this is standard `pytest` conventions). Use the `TestClient` object the same way as you do with `httpx`. Write simple `assert` statements with the standard Python expressions that you need to check (again, standard `pytest`). ```Python hl_lines="2 12 15-18" {!../../../docs_src/app_testing/tutorial001.py!} ``` !!! tip
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 6.2K bytes - Viewed (0) -
docs/de/docs/how-to/custom-docs-ui-assets.md
# Statische Assets der Dokumentationsoberfläche (selbst hosten) Die API-Dokumentation verwendet **Swagger UI** und **ReDoc**, und jede dieser Dokumentationen benötigt einige JavaScript- und CSS-Dateien.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 18:17:36 GMT 2024 - 9.2K bytes - Viewed (0) -
docs/en/docs/release-notes.md
* Fix mypy error after merging PR #415. PR [#462](https://github.com/tiangolo/fastapi/pull/462). ## 0.35.0 * Fix typo in routing `assert`. PR [#419](https://github.com/tiangolo/fastapi/pull/419) by [@pablogamboa](https://github.com/pablogamboa). * Fix typo in docs. PR [#411](https://github.com/tiangolo/fastapi/pull/411) by [@bronsen](https://github.com/bronsen).
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri May 03 23:25:42 GMT 2024 - 388.1K bytes - Viewed (1) -
docs/de/docs/tutorial/testing.md
Erstellen Sie Funktionen mit einem Namen, der mit `test_` beginnt (das sind `pytest`-Konventionen). Verwenden Sie das `TestClient`-Objekt auf die gleiche Weise wie `httpx`. Schreiben Sie einfache `assert`-Anweisungen mit den Standard-Python-Ausdrücken, die Sie überprüfen müssen (wiederum, Standard-`pytest`). ```Python hl_lines="2 12 15-18" {!../../../docs_src/app_testing/tutorial001.py!} ``` !!! tip "Tipp"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:20:01 GMT 2024 - 7K bytes - Viewed (0) -
docs/ru/docs/tutorial/testing.md
Создайте функцию, название которой должно начинаться с `test_` (это стандарт из соглашений `pytest`). Используйте объект `TestClient` так же, как Вы используете `httpx`. Напишите простое утверждение с `assert` дабы проверить истинность Python-выражения (это тоже стандарт `pytest`). ```Python hl_lines="2 12 15-18" {!../../../docs_src/app_testing/tutorial001.py!} ``` !!! tip "Подсказка"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 10.2K bytes - Viewed (0) -
docs/en/docs/how-to/custom-docs-ui-assets.md
# Custom Docs UI Static Assets (Self-Hosting) The API docs use **Swagger UI** and **ReDoc**, and each of those need some JavaScript and CSS files. By default, those files are served from a <abbr title="Content Delivery Network: A service, normally composed of several servers, that provides static files, like JavaScript and CSS. It's commonly used to serve those files from the server closer to the client, improving performance.">CDN</abbr>.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Oct 30 09:58:58 GMT 2023 - 7.5K bytes - Viewed (0) -
docs/em/docs/tutorial/testing.md
🤶 Ⓜ. `pip install httpx`. 🗄 `TestClient`. ✍ `TestClient` 🚶♀️ 👆 **FastAPI** 🈸 ⚫️. ✍ 🔢 ⏮️ 📛 👈 ▶️ ⏮️ `test_` (👉 🐩 `pytest` 🏛). ⚙️ `TestClient` 🎚 🎏 🌌 👆 ⏮️ `httpx`. ✍ 🙅 `assert` 📄 ⏮️ 🐩 🐍 🧬 👈 👆 💪 ✅ (🔄, 🐩 `pytest`). ```Python hl_lines="2 12 15-18" {!../../../docs_src/app_testing/tutorial001.py!} ``` !!! tip 👀 👈 🔬 🔢 😐 `def`, 🚫 `async def`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 5.2K bytes - Viewed (0) -
docs/ja/docs/tutorial/testing.md
`TestClient` をインポートします。 `TestClient` を作成し、**FastAPI** に渡します。 `test_` から始まる名前の関数を作成します (これは `pytest` の標準的なコンベンションです)。 `httpx` と同じ様に `TestClient` オブジェクトを使用します。 チェックしたい Python の標準的な式と共に、シンプルに `assert` 文を記述します。 ```Python hl_lines="2 12 15-18" {!../../../docs_src/app_testing/tutorial001.py!} ``` !!! tip "豆知識" テスト関数は `async def` ではなく、通常の `def` であることに注意してください。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 18 16:16:02 GMT 2023 - 5.8K bytes - Viewed (0) -
docs/zh/docs/tutorial/testing.md
例:`pip install httpx`. 导入 `TestClient`. 通过传入你的**FastAPI**应用创建一个 `TestClient` 。 创建名字以 `test_` 开头的函数(这是标准的 `pytest` 约定)。 像使用 `httpx` 那样使用 `TestClient` 对象。 为你需要检查的地方用标准的Python表达式写个简单的 `assert` 语句(重申,标准的`pytest`)。 ```Python hl_lines="2 12 15-18" {!../../../docs_src/app_testing/tutorial001.py!} ``` !!! tip "提示" 注意测试函数是普通的 `def`,不是 `async def`。 还有client的调用也是普通的调用,不是用 `await`。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 6K bytes - Viewed (0)