CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-pytest-redis

Redis fixtures and fixture factories for Pytest.

Overall
score

95%

Overview
Eval results
Files

rubric.jsonevals/scenario-3/

{
  "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-redis

tile.json