or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/pytest-redis@3.1.x
tile.json

tessl/pypi-pytest-redis

tessl install tessl/pypi-pytest-redis@3.1.0

Redis 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%

task.mdevals/scenario-6/

Redis Configuration Validator

Build a utility module that validates Redis server configurations before test execution, ensuring that common misconfigurations are detected early with clear error messages.

Capabilities

Validate Redis Executable Path

  • When given a valid Redis executable path, the validator confirms it exists and is executable @test
  • When given an invalid or non-existent Redis executable path, the validator raises an appropriate configuration error @test

Validate Unix Socket Path Length

  • When given a Unix socket path within acceptable length limits, the validator accepts it @test
  • When given a Unix socket path that exceeds platform-specific length limits, the validator raises an appropriate socket path error @test

Validate Redis Version Compatibility

  • When given a Redis server executable version 2.6 or higher, the validator accepts it @test
  • When given a Redis server executable version lower than 2.6, the validator raises an appropriate version compatibility error @test

Implementation

@generates

API

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
    """
    pass

Dependencies { .dependencies }

pytest-redis { .dependency }

Provides Redis testing fixtures and custom exception types for proper error handling.

@satisfied-by