Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for pipe (0.15 sec)

  1. 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 Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6K bytes
    - Viewed (0)
  2. 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 Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  3. docs/ja/docs/tutorial/testing.md

    ## 実行
    
    後は、`pytest` をインストールするだけです:
    
    <div class="termy">
    
    ```console
    $ pip install pytest
    
    ---> 100%
    ```
    
    </div>
    
    ファイルを検知し、自動テストを実行し、結果のレポートを返します。
    
    以下でテストを実行します:
    
    <div class="termy">
    
    ```console
    $ pytest
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat Mar 18 16:16:02 GMT 2023
    - 5.8K bytes
    - Viewed (0)
Back to top