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 fixture factory functions to create custom Redis configurations. The focus is on correct usage of redis_proc() and redisdb() factory functions to set up multiple independent Redis instances with specific configurations.",
"type": "weighted_checklist",
"checklist": [
{
"name": "redis_proc factory import",
"description": "Correctly imports the redis_proc factory function from pytest_redis.factories",
"max_score": 10
},
{
"name": "redisdb factory import",
"description": "Correctly imports the redisdb factory function from pytest_redis.factories",
"max_score": 10
},
{
"name": "Development process fixture",
"description": "Uses redis_proc() factory to create a custom development Redis process fixture with port=6380",
"max_score": 15
},
{
"name": "Production process fixture",
"description": "Uses redis_proc() factory to create a custom production Redis process fixture with port configuration as a range (e.g., port=(7000, 7100) or port='7000-7100')",
"max_score": 15
},
{
"name": "Development client fixture",
"description": "Uses redisdb() factory to create a custom development Redis client fixture that connects to the development process fixture with db=0",
"max_score": 15
},
{
"name": "Production client fixture",
"description": "Uses redisdb() factory to create a custom production Redis client fixture that connects to the production process fixture with db=1",
"max_score": 15
},
{
"name": "Process-client linkage",
"description": "Correctly links each client fixture to its corresponding process fixture by passing the process fixture name as the 'process_fixture_name' parameter to redisdb()",
"max_score": 10
},
{
"name": "Test usage",
"description": "Tests correctly use the custom fixtures by accepting them as parameters and perform the required Redis operations (set/get) to verify functionality",
"max_score": 10
}
]
}