Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 1,395 for treating (0.05 seconds)

  1. docs/zh/docs/tutorial/testing.md

    # 测试 { #testing }
    
    感谢 [Starlette](https://www.starlette.dev/testclient/),测试**FastAPI** 应用轻松又愉快。
    
    它基于 [HTTPX](https://www.python-httpx.org),而HTTPX又是基于Requests设计的,所以很相似且易懂。
    
    有了它,你可以直接与**FastAPI**一起使用 [pytest](https://docs.pytest.org/)。
    
    ## 使用 `TestClient` { #using-testclient }
    
    /// info | 信息
    
    要使用 `TestClient`,先要安装 [`httpx`](https://www.python-httpx.org)。
    
    确保你创建并激活一个[虚拟环境](../virtual-environments.md),然后再安装,例如:
    
    ```console
    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)
  2. guava-gwt/test/com/google/common/escape/testing/Testing.gwt.xml

    <module>
    <source path="">
      <!-- Hack to keep collect from hiding collect.testing supersource: -->
      <exclude name="**/testing/**"/>
    </source>
    
    <!--
        We used to set this only for packages that had manual supersource. That
        worked everywhere that I know of except for one place: when running the GWT
        util.concurrent tests under Guava.
    
        The problem is that GWT responds poorly to two .gwt.xml files in the same
        Java package; see
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jul 19 16:02:36 GMT 2024
    - 1.5K bytes
    - Click Count (0)
  3. docs/en/docs/advanced/testing-events.md

    # Testing Events: lifespan and startup - shutdown { #testing-events-lifespan-and-startup-shutdown }
    
    When you need `lifespan` to run in your tests, you can use the `TestClient` with a `with` statement:
    
    {* ../../docs_src/app_testing/tutorial004_py310.py hl[9:15,18,27:28,30:32,41:43] *}
    
    
    You can read more details about the ["Running lifespan in tests in the official Starlette documentation site."](https://www.starlette.dev/lifespan/#running-lifespan-in-tests)
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 628 bytes
    - Click Count (0)
  4. docs/fr/docs/advanced/testing-events.md

    # Tester les événements : lifespan et startup - shutdown { #testing-events-lifespan-and-startup-shutdown }
    
    Lorsque vous avez besoin d'exécuter `lifespan` dans vos tests, vous pouvez utiliser `TestClient` avec une instruction `with` :
    
    {* ../../docs_src/app_testing/tutorial004_py310.py hl[9:15,18,27:28,30:32,41:43] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:12:41 GMT 2026
    - 701 bytes
    - Click Count (0)
  5. docs/es/docs/advanced/testing-websockets.md

    # Probando WebSockets { #testing-websockets }
    
    Puedes usar el mismo `TestClient` para probar WebSockets.
    
    Para esto, usas el `TestClient` en un statement `with`, conectándote al WebSocket:
    
    {* ../../docs_src/app_testing/tutorial002_py310.py hl[27:31] *}
    
    /// note | Nota
    
    Para más detalles, revisa la documentación de Starlette sobre [probar WebSockets](https://www.starlette.dev/testclient/#testing-websocket-sessions).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 429 bytes
    - Click Count (0)
  6. docs/fr/docs/how-to/testing-database.md

    # Tester une base de données { #testing-a-database }
    
    Vous pouvez étudier les bases de données, SQL et SQLModel dans les [documents SQLModel](https://sqlmodel.tiangolo.com/). 🤓
    
    Il existe un mini [tutoriel sur l'utilisation de SQLModel avec FastAPI](https://sqlmodel.tiangolo.com/tutorial/fastapi/). ✨
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 447 bytes
    - Click Count (0)
  7. docs/en/docs/how-to/testing-database.md

    # Testing a Database { #testing-a-database }
    
    You can study about databases, SQL, and SQLModel in the [SQLModel docs](https://sqlmodel.tiangolo.com/). 🤓
    
    There's a mini [tutorial on using SQLModel with FastAPI](https://sqlmodel.tiangolo.com/tutorial/fastapi/). ✨
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 393 bytes
    - Click Count (0)
  8. docs/ko/docs/advanced/testing-dependencies.md

    # 오버라이드로 의존성 테스트하기 { #testing-dependencies-with-overrides }
    
    ## 테스트 중 의존성 오버라이드하기 { #overriding-dependencies-during-testing }
    
    테스트를 진행하다 보면 테스트 중에 의존성을 오버라이드해야 하는 경우가 있습니다.
    
    원래 의존성을 실행하고 싶지 않을 수도 있습니다(또는 그 의존성이 가지고 있는 하위 의존성까지도 실행되지 않길 원할 수 있습니다).
    
    대신, 테스트 동안(특정 테스트에서만) 사용될 다른 의존성을 제공하고, 원래 의존성이 사용되던 곳에서 사용할 수 있는 값을 제공하기를 원할 수 있습니다.
    
    ### 사용 사례: 외부 서비스 { #use-cases-external-service }
    
    예를 들어, 외부 인증 제공자를 호출해야 하는 경우를 생각해봅시다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Jan 11 00:15:26 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  9. docs/uk/docs/how-to/testing-database.md

    # Тестування бази даних { #testing-a-database }
    
    Ви можете ознайомитися з базами даних, SQL і SQLModel у [документації SQLModel](https://sqlmodel.tiangolo.com/). 🤓
    
    Є невеликий [навчальний посібник про використання SQLModel з FastAPI](https://sqlmodel.tiangolo.com/tutorial/fastapi/). ✨
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 588 bytes
    - Click Count (0)
  10. docs/ru/docs/advanced/testing-dependencies.md

    # Тестирование зависимостей с переопределениями { #testing-dependencies-with-overrides }
    
    ## Переопределение зависимостей во время тестирования { #overriding-dependencies-during-testing }
    
    Есть сценарии, когда может понадобиться переопределить зависимость во время тестирования.
    
    Вы не хотите, чтобы исходная зависимость выполнялась (и любые её подзависимости тоже).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Sep 30 11:37:11 GMT 2025
    - 4.3K bytes
    - Click Count (0)
Back to Top