Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 580 for tests (0.18 sec)

  1. requirements-tests.txt

    -e .
    -r requirements-docs-tests.txt
    pydantic-settings >=2.0.0
    pytest >=7.1.3,<8.0.0
    coverage[toml] >= 6.5.0,< 8.0
    mypy ==1.8.0
    ruff ==0.2.0
    email_validator >=1.1.1,<3.0.0
    dirty-equals ==0.6.0
    # TODO: once removing databases from tutorial, upgrade SQLAlchemy
    # probably when including SQLModel
    sqlalchemy >=1.3.18,<1.4.43
    databases[sqlite] >=0.3.2,<0.7.0
    orjson >=3.2.1,<4.0.0
    ujson >=4.0.1,!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0,<6.0.0
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 671 bytes
    - Viewed (0)
  2. docs/de/docs/advanced/async-tests.md

    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    Die Datei `main.py` hätte als Inhalt:
    
    ```Python
    {!../../../docs_src/async_tests/main.py!}
    ```
    
    Die Datei `test_main.py` hätte die Tests für `main.py`, das könnte jetzt so aussehen:
    
    ```Python
    {!../../../docs_src/async_tests/test_main.py!}
    ```
    
    ## Es ausführen
    
    Sie können Ihre Tests wie gewohnt ausführen mit:
    
    <div class="termy">
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:25:57 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  3. docs/em/docs/advanced/async-tests.md

    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    📁 `main.py` 🔜 ✔️:
    
    ```Python
    {!../../../docs_src/async_tests/main.py!}
    ```
    
    📁 `test_main.py` 🔜 ✔️ 💯 `main.py`, ⚫️ 💪 👀 💖 👉 🔜:
    
    ```Python
    {!../../../docs_src/async_tests/test_main.py!}
    ```
    
    ## 🏃 ⚫️
    
    👆 💪 🏃 👆 💯 🐌 📨:
    
    <div class="termy">
    
    ```console
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 3K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/async-tests.md

    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    The file `main.py` would have:
    
    ```Python
    {!../../../docs_src/async_tests/main.py!}
    ```
    
    The file `test_main.py` would have the tests for `main.py`, it could look like this now:
    
    ```Python
    {!../../../docs_src/async_tests/test_main.py!}
    ```
    
    ## Run it
    
    You can run your tests as usual via:
    
    <div class="termy">
    
    ```console
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Jan 13 12:07:15 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  5. requirements-docs-tests.txt

    # For mkdocstrings and tests
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 52 bytes
    - Viewed (0)
  6. docs/de/docs/advanced/testing-dependencies.md

    Sie möchten den externen Anbieter wahrscheinlich einmal testen, ihn aber nicht unbedingt bei jedem weiteren ausgeführten Test aufrufen.
    
    In diesem Fall können Sie die Abhängigkeit, die diesen Anbieter aufruft, überschreiben und eine benutzerdefinierte Abhängigkeit verwenden, die einen Scheinbenutzer zurückgibt, nur für Ihre Tests.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:17:32 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  7. docs/zh/docs/advanced/testing-database.md

    本例中,要创建仅用于测试的临时数据库。
    
    ## 文件架构
    
    创建新文件 `sql_app/tests/test_sql_app.py`。
    
    因此,新的文件架构如下:
    
    ``` hl_lines="9-11"
    .
    └── sql_app
        ├── __init__.py
        ├── crud.py
        ├── database.py
        ├── main.py
        ├── models.py
        ├── schemas.py
        └── tests
            ├── __init__.py
            └── test_sql_app.py
    ```
    
    ## 创建新的数据库会话
    
    首先,为新建数据库创建新的数据库会话。
    
    测试时,使用 `test.db` 替代 `sql_app.db`。
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Jan 28 18:09:26 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/testing-dependencies.md

    You probably want to test the external provider once, but not necessarily call it for every test that runs.
    
    In this case, you can override the dependency that calls that provider, and use a custom dependency that returns a mock user, only for your tests.
    
    ### Use the `app.dependency_overrides` attribute
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  9. scripts/test.sh

    #!/usr/bin/env bash
    
    set -e
    set -x
    
    export PYTHONPATH=./docs_src
    Shell Script
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Jun 11 21:38:15 GMT 2023
    - 99 bytes
    - Viewed (3)
  10. tests/test_tutorial/test_sql_databases/test_testing_databases_py39.py

    @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
            test_db.unlink()
        # Import while creating the client to create the DB after starting the test session
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 822 bytes
    - Viewed (0)
Back to top