tessl install tessl/pypi-pytest-redis@3.1.0Redis fixtures and fixture factories for Pytest.
Agent Success
Agent success rate when using this tile
95%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.12x
Baseline
Agent success rate without this tile
85%
Build a utility module that validates Redis server configurations before test execution, ensuring that common misconfigurations are detected early with clear error messages.
@generates
def validate_redis_executable(executable_path: str) -> None:
"""
Validates that the Redis executable exists and is accessible.
Args:
executable_path: Path to the Redis server executable
Raises:
Exception if the executable is invalid or inaccessible
"""
pass
def validate_socket_path(socket_path: str) -> None:
"""
Validates that a Unix socket path is within acceptable length limits.
Platform-specific limits apply (Linux: 107 chars, others: 104 chars).
Args:
socket_path: Path for the Unix socket
Raises:
Exception if the socket path is too long for the platform
"""
pass
def validate_redis_version(executable_path: str, min_version: str = "2.6") -> None:
"""
Validates that the Redis server version meets minimum requirements.
Args:
executable_path: Path to the Redis server executable
min_version: Minimum acceptable version (default: "2.6")
Raises:
Exception if the Redis version is unsupported
"""
passProvides Redis testing fixtures and custom exception types for proper error handling.
@satisfied-by