Redis fixtures and fixture factories for Pytest.
Overall
score
95%
{
"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
}
]
}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