Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 94 for testing (0.16 sec)

  1. docs/ru/docs/deployment/versions.md

    ## Обновление версий FastAPI
    
    Вам следует добавить тесты для вашего приложения.
    
    С помощью **FastAPI** это очень просто (благодаря Starlette), см. документацию: [Тестирование](../tutorial/testing.md){.internal-link target=_blank}
    
    После создания тестов вы можете обновить свою версию **FastAPI** до более новой. После этого следует убедиться, что ваш код работает корректно, запустив тесты.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_testing/test_main_b_an_py310.py

    from ...utils import needs_py310
    
    
    @needs_py310
    def test_app():
        from docs_src.app_testing.app_b_an_py310 import test_main
    
        test_main.test_create_existing_item()
        test_main.test_create_item()
        test_main.test_create_item_bad_token()
        test_main.test_read_nonexistent_item()
        test_main.test_read_item()
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 360 bytes
    - Viewed (0)
  3. tests/test_tutorial/test_testing/test_tutorial003.py

    import pytest
    
    
    def test_main():
        with pytest.warns(DeprecationWarning):
            from docs_src.app_testing.tutorial003 import test_read_items
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Oct 18 12:36:40 GMT 2023
    - 167 bytes
    - Viewed (0)
  4. tests/test_tutorial/test_testing/test_tutorial002.py

    from docs_src.app_testing.tutorial002 import test_read_main, test_websocket
    
    
    def test_main():
        test_read_main()
    
    
    def test_ws():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 10 09:08:19 GMT 2020
    - 154 bytes
    - Viewed (0)
  5. docs/de/docs/reference/testclient.md

    # Testclient – `TestClient`
    
    Sie können die `TestClient`-Klasse verwenden, um FastAPI-Anwendungen zu testen, ohne eine tatsächliche HTTP- und Socket-Verbindung zu erstellen, Sie kommunizieren einfach direkt mit dem FastAPI-Code.
    
    Lesen Sie mehr darüber in der [FastAPI-Dokumentation über Testen](../tutorial/testing.md).
    
    Sie können sie direkt von `fastapi.testclient` importieren:
    
    ```python
    from fastapi.testclient import TestClient
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:14:49 GMT 2024
    - 481 bytes
    - Viewed (0)
  6. tests/test_tutorial/test_testing/test_main_b_py310.py

    from ...utils import needs_py310
    
    
    @needs_py310
    def test_app():
        from docs_src.app_testing.app_b_py310 import test_main
    
        test_main.test_create_existing_item()
        test_main.test_create_item()
        test_main.test_create_item_bad_token()
        test_main.test_read_nonexistent_item()
        test_main.test_read_item()
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 357 bytes
    - Viewed (0)
  7. docs/ko/docs/deployment/versions.md

    !!! tip "팁"
        "마이너"란 버전 넘버의 가운데 숫자로, 예를 들어서 `0.2.3`의 "마이너" 버전은 `2`입니다.
    
    ## FastAPI 버전의 업그레이드
    
    응용 프로그램을 검사해야합니다.
    
    (Starlette 덕분에), **FastAPI** 를 이용하여 굉장히 쉽게 할 수 있습니다. [Testing](../tutorial/testing.md){.internal-link target=_blank}문서를 확인해 보십시오:
    
    검사를 해보고 난 후에, **FastAPI** 버전을 더 최신으로 업그레이드 할 수 있습니다. 그리고 코드들이 테스트에 정상적으로 작동하는지 확인을 해야합니다.
    
    만약에 모든 것이 정상 작동하거나 필요한 부분을 변경하고, 모든 검사를 통과한다면, 새로운 버전의  `fastapi`를 표시할 수 있습니다.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 12 00:06:16 GMT 2022
    - 4.1K bytes
    - Viewed (0)
  8. docs/en/docs/how-to/nosql-databases-couchbase.md

    * Take a username.
    * Generate a document ID from it.
    * Get the document with that ID.
    * Put the contents of the document in a `UserInDB` model.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 6K bytes
    - Viewed (0)
  9. docs/zh/docs/deployment/versions.md

    fastapi>=0.45.0,<0.46.0
    ```
    
    "MINOR"版本中会添加breaking changes和新功能。
    
    !!! tip
         "MINOR"是中间的数字,例如,在`0.2.3`中,MINOR版本是`2`。
    
    ## 升级FastAPI版本
    
    你应该为你的应用程序添加测试。
    
    使用 **FastAPI** 编写测试非常简单(感谢 Starlette),请参考文档:[测试](../tutorial/testing.md){.internal-link target=_blank}
    
    添加测试后,你可以将 **FastAPI** 版本升级到更新版本,并通过运行测试来确保所有代码都能正常工作。
    
    如果一切正常,或者在进行必要的更改之后,并且所有测试都通过了,那么你可以将`fastapi`固定到新的版本。
    
    ## 关于Starlette
    
    你不应该固定`starlette`的版本。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Sep 22 23:30:46 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_testing/test_main.py

    from docs_src.app_testing.test_main import client, test_read_main
    
    
    def test_main():
        test_read_main()
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/": {
                    "get": {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 819 bytes
    - Viewed (0)
Back to top