pyupgrade fixed imports
Code Quality Pipeline / code-quality (pull_request) Successful in 17s
Test Python Package / test (pull_request) Failing after 10s

This commit is contained in:
Brian Bjarke Jensen
2025-09-14 20:11:26 +02:00
parent 2fa633a44f
commit b5d0297375
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -1,7 +1,7 @@
"""Integration tests configuration."""
import os
from typing import Generator
from collections.abc import Generator
import pytest
import redis
import structlog
@@ -27,7 +27,7 @@ def configure_logging() -> None:
@pytest.fixture(scope="session")
def redis_container() -> Generator[str, None, None]:
def redis_container() -> Generator[str]:
"""Set up a Redis container for testing and yield the Redis URI."""
# Start container
container = RedisContainer(
@@ -52,7 +52,7 @@ def redis_container() -> Generator[str, None, None]:
@pytest.fixture(scope="session", autouse=True)
def set_environment_variables(
redis_container: str,
) -> Generator[dict[str, str], None, None]:
) -> Generator[dict[str, str]]:
"""Set environment variables needed for tests."""
# Build environment variables dictionary
env_vars = {"REDIS_URI": redis_container}
@@ -68,7 +68,7 @@ def set_environment_variables(
@pytest.fixture(scope="session")
def raw_redis_client(redis_container: str) -> Generator[redis.Redis, None, None]:
def raw_redis_client(redis_container: str) -> Generator[redis.Redis]:
"""Provide a raw Redis client connected to the test Redis container."""
# Connect client
client = redis.Redis.from_url(