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-1/

{
  "context": "This criteria evaluates how well the engineer uses pytest-redis's fixture factory functions and configuration parameters to create custom Redis fixtures with specific data persistence settings. The focus is on proper usage of the redis_proc factory with persistence-related parameters.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Factory import",
      "description": "Uses pytest_redis.factories module to import redis_proc and redisdb factory functions",
      "max_score": 10
    },
    {
      "name": "Process fixture creation",
      "description": "Creates a custom Redis process fixture using the redis_proc() factory function with appropriate pytest fixture decorator",
      "max_score": 15
    },
    {
      "name": "Save configuration",
      "description": "Configures the save parameter with the correct format '60 1000 300 100 900 1' to specify snapshot rules",
      "max_score": 25
    },
    {
      "name": "RDB compression",
      "description": "Sets the rdbcompression parameter to True to enable RDB compression",
      "max_score": 15
    },
    {
      "name": "RDB checksum",
      "description": "Sets the rdbchecksum parameter to True to enable checksum validation",
      "max_score": 15
    },
    {
      "name": "Port configuration",
      "description": "Configures the port parameter to 6380 as specified",
      "max_score": 5
    },
    {
      "name": "Client fixture creation",
      "description": "Creates a Redis client fixture using the redisdb() factory function that connects to the custom process fixture",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-pytest-redis

tile.json