Redis fixtures and fixture factories for Pytest.
Overall
score
95%
{
"context": "This criteria evaluates how well the engineer uses pytest-redis fixtures to test Redis-based functionality. The focus is exclusively on proper fixture usage and Redis client operations.",
"type": "weighted_checklist",
"checklist": [
{
"name": "redisdb fixture usage",
"description": "Test functions correctly use the redisdb fixture as a parameter to obtain a Redis client connection for testing",
"max_score": 30
},
{
"name": "Redis client methods",
"description": "Implementation uses redis.Redis client methods (set, get, delete, exists) correctly to perform Redis operations",
"max_score": 30
},
{
"name": "JSON handling",
"description": "Uses json.dumps() to serialize dictionaries when storing to Redis and json.loads() to deserialize when retrieving from Redis",
"max_score": 25
},
{
"name": "Test structure",
"description": "Tests pass the redisdb fixture to SessionStore constructor and use it to verify Redis state changes",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-pytest-redisdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10