Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 70 for Kersting (0.15 sec)

  1. tests/test_tutorial/test_testing/test_main_b_an_py39.py

    from ...utils import needs_py39
    
    
    @needs_py39
    def test_app():
        from docs_src.app_testing.app_b_an_py39 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)
  2. docs/es/docs/deployment/versions.md

    ## Actualizando las versiones de FastAPI
    
    Para esto es recomendable primero añadir tests a tu aplicación.
    
    Con **FastAPI** es muy fácil (gracias a Starlette), revisa la documentación [Testing](../tutorial/testing.md){.internal-link target=_blank}
    
    Luego de tener los tests, puedes actualizar la versión de **FastAPI** a una más reciente y asegurarte de que tu código funciona correctamente ejecutando los tests.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Feb 07 11:55:38 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. docs/en/data/external_links.yml

      - author: Michael Herman
        author_link: https://testdriven.io/authors/herman
        link: https://testdriven.io/blog/fastapi-crud/
        title: 'TestDriven.io: Developing and Testing an Asynchronous API with FastAPI and Pytest'
      - author: Bernard Brenyah
        author_link: https://medium.com/@bbrenyah
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Mar 21 20:57:27 GMT 2024
    - 21.3K bytes
    - Viewed (2)
  6. docs/en/docs/how-to/sql-databases-peewee.md

    ```Python hl_lines="2"
    # Something goes here
    def read_users(skip: int = 0, limit: int = 100):
        # Something goes here
    ```
    
    ## Testing Peewee with async
    
    This example includes an extra *path operation* that simulates a long processing request with `time.sleep(sleep_time)`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  7. fastapi/applications.py

                    actual dependency that should be called.
    
                    This is for testing, to replace expensive dependencies with testing
                    versions.
    
                    Read more about it in the
                    [FastAPI docs for Testing Dependencies with Overrides](https://fastapi.tiangolo.com/advanced/testing-dependencies/).
                    """
                ),
            ] = {}
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_sql_databases/test_testing_databases_py39.py

    import importlib
    import os
    from pathlib import Path
    
    import pytest
    
    from ...utils import needs_py39, needs_pydanticv1
    
    
    @needs_py39
    # TODO: pv2 add version with Pydantic v2
    @needs_pydanticv1
    def test_testing_dbs_py39(tmp_path_factory: pytest.TempPathFactory):
        tmp_path = tmp_path_factory.mktemp("data")
        cwd = os.getcwd()
        os.chdir(tmp_path)
        test_db = Path("./test.db")
        if test_db.is_file():  # pragma: nocover
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 822 bytes
    - Viewed (0)
  9. docs/pt/docs/deployment/versions.md

    ## Atualizando as versões do FastAPI
    
    Você deve adicionar testes para a sua aplicação.
    
    Com **FastAPI** isso é muito fácil (graças a Starlette), verifique a documentação: [Testing](../tutorial/testing.md){.internal-link target=\_blank}
    
    Após a criação dos testes, você pode atualizar a sua versão do **FastAPI** para uma mais recente, execute os testes para se certificar de que todo o seu código está funcionando corretamente.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jul 29 20:14:40 GMT 2021
    - 3.8K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/settings.md

        ```Python hl_lines="16  18-20"
        {!> ../../../docs_src/settings/app02/main.py!}
        ```
    
    ### Settings and testing
    
    Then it would be very easy to provide a different settings object during testing by creating a dependency override for `get_settings`:
    
    ```Python hl_lines="9-10  13  21"
    {!../../../docs_src/settings/app02/test_main.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 15.7K bytes
    - Viewed (0)
Back to top