INNER CODE UNIT · Python

tests_integration

redis/fastapi-redis-sdk · noxfile.py:109

def tests_integration(session: nox.Session) -> None:
    """Run the integration suite against a real Redis server on localhost:6379.

    Tests are marked ``@requires_redis`` and skip when no server is reachable.
    That cannot pass vacuously: with all of them skipped coverage drops to
    ~35% and the floor below fails the session, so a missing server surfaces
    as a failure rather than a green all-skipped run.
    """
    uv_sync(session, "--extra", "otel", "--no-default-groups", "--group", "test")
    session.run(
        "pytest",
        "tests/integration",
        f"--cov-fail-under={_INTEGRATION_COV_FLOOR}",
        *session.posargs,
    )


# ---------------------------------------------------------------------------

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…