Redis fixtures and fixture factories for Pytest.
Overall
score
95%
{
"context": "This criteria evaluates how well the engineer uses pytest-redis package features to handle database lifecycle management, specifically automatic cleanup, test isolation, and proper fixture usage for Redis-based testing.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses redisdb fixture",
"description": "Test file uses the built-in `redisdb` fixture from pytest-redis to obtain a Redis client, rather than creating clients manually or using other fixtures",
"max_score": 25
},
{
"name": "Relies on automatic cleanup",
"description": "Tests rely on pytest-redis's automatic database cleanup (flushall) between tests rather than manually implementing cleanup in teardown methods or fixtures",
"max_score": 30
},
{
"name": "Test isolation verification",
"description": "Includes test(s) that specifically verify test isolation by demonstrating that data from one test does not persist into subsequent tests, validating the automatic cleanup functionality",
"max_score": 25
},
{
"name": "Proper Redis client usage",
"description": "Correctly uses the Redis client methods (set, get, incr, keys, or similar) in the SessionCounter implementation and passes the client through the constructor as specified",
"max_score": 20
}
]
}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