Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for pipe (0.14 sec)

  1. docs/em/docs/tutorial/testing.md

    ## ⚙️ `TestClient`
    
    !!! info
        ⚙️ `TestClient`, 🥇 ❎ <a href="https://www.python-httpx.org" class="external-link" target="_blank">`httpx`</a>.
    
        🤶 Ⓜ. `pip install httpx`.
    
    🗄 `TestClient`.
    
    ✍ `TestClient` 🚶‍♀️ 👆 **FastAPI** 🈸 ⚫️.
    
    ✍ 🔢 ⏮️ 📛 👈 ▶️ ⏮️ `test_` (👉 🐩 `pytest` 🏛).
    
    ⚙️ `TestClient` 🎚 🎏 🌌 👆 ⏮️ `httpx`.
    
    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)
  2. docs/zh/docs/tutorial/testing.md

    ## 使用 `TestClient`
    
    !!! info "信息"
        要使用 `TestClient`,先要安装 <a href="https://www.python-httpx.org" class="external-link" target="_blank">`httpx`</a>.
    
        例:`pip install httpx`.
    
    导入 `TestClient`.
    
    通过传入你的**FastAPI**应用创建一个 `TestClient` 。
    
    创建名字以 `test_` 开头的函数(这是标准的 `pytest` 约定)。
    
    像使用 `httpx` 那样使用 `TestClient` 对象。
    
    为你需要检查的地方用标准的Python表达式写个简单的 `assert` 语句(重申,标准的`pytest`)。
    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)
Back to top