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%
{
"context": "This criteria evaluates how well the engineer uses pytest-redis's fixture factory functions to create and manage multiple independent Redis instances for testing. The focus is on proper usage of redis_proc() and redisdb() factories to create custom fixtures with appropriate configurations.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Factory import",
"description": "Correctly imports the required factory functions from pytest_redis.factories (specifically redis_proc and redisdb factories)",
"max_score": 10
},
{
"name": "Process fixtures creation",
"description": "Uses redis_proc() factory to create two independent Redis process fixtures (e.g., redis_proc_one and redis_proc_two) with proper port configuration to avoid conflicts",
"max_score": 25
},
{
"name": "Client fixtures creation",
"description": "Uses redisdb() factory to create two independent Redis client fixtures (redis_one and redis_two) that link to their corresponding process fixtures",
"max_score": 25
},
{
"name": "Port configuration",
"description": "Configures different ports for each Redis process fixture to prevent port conflicts (using port parameter in redis_proc() calls)",
"max_score": 15
},
{
"name": "Test implementation",
"description": "Implements all three test cases that correctly use both redis_one and redis_two fixtures to verify isolation (set/get operations, dbsize checks, and ping commands)",
"max_score": 20
},
{
"name": "Fixture configuration",
"description": "Places fixture definitions in conftest.py as specified, making them available to the test module",
"max_score": 5
}
]
}