CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-pytest-redis

Redis fixtures and fixture factories for Pytest.

Overall
score

95%

Overview
Eval results
Files

task.mdevals/scenario-4/

Redis Unix Socket Test Suite

A test suite that demonstrates Redis testing using Unix domain sockets. The suite should configure custom Redis fixtures to use Unix sockets and verify socket path validation behavior.

Capabilities

Test Unix socket connection

  • Create a custom Redis process fixture using Unix socket in /tmp/redis directory, store key "test_key" with value "socket_works", and verify retrieval returns "socket_works" @test

Test socket path validation

  • Create a Redis process fixture with a data directory path that results in a Unix socket path exceeding 107 characters and verify that an error is raised during fixture creation @test

Test basic operations via socket

  • Using a Unix socket Redis fixture with data directory /tmp/short, perform SET operation with key "counter" and value "42", then GET "counter" and verify it returns "42" @test

Implementation

@generates

API

"""
Pytest configuration file with custom Redis fixtures using Unix sockets.
"""

# Custom fixtures for Unix socket-based Redis testing should be defined here

Dependencies { .dependencies }

pytest-redis { .dependency }

Provides Redis fixtures and fixture factories for pytest, including Unix socket support.

@satisfied-by

Install with Tessl CLI

npx tessl i tessl/pypi-pytest-redis

tile.json