Changeset View
Changeset View
Standalone View
Standalone View
swh/counters/tests/conftest.py
Show All 27 Lines | |||||
@pytest.fixture | @pytest.fixture | ||||
def local_redis(redis_proc): | def local_redis(redis_proc): | ||||
yield redis_proc | yield redis_proc | ||||
# Cleanup redis between 2 tests | # Cleanup redis between 2 tests | ||||
rc = RedisClient(host=redis_proc.host, port=redis_proc.port) | rc = RedisClient(host=redis_proc.host, port=redis_proc.port) | ||||
rc.flushall() | rc.flushall() | ||||
@pytest.fixture | |||||
def local_redis_host(local_redis): | |||||
return f"{local_redis.host}:{local_redis.port}" |