CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-pytest-redis

Redis fixtures and fixture factories for Pytest.

Overall
score

95%

Overview
Eval results
Files

task.mdevals/scenario-7/

Authenticated Redis Testing Environment

A test suite for a cache service that requires Redis with authentication enabled.

Overview

Build a testing infrastructure that creates a Redis instance with authentication configured. The test environment should use username and password authentication to ensure the cache service correctly handles authenticated Redis connections.

Capabilities

Authenticated Connection Tests

  • Test that successfully connects to Redis using username "cacheuser" and password "securepass123", then sets key "user:1" to value "Alice" and retrieves it @test
  • Test that verifies connection fails with an authentication error when connecting to the authenticated Redis without providing credentials @test

Implementation

@generates

Test File

Create a test file named test_authenticated_redis.py that implements the test cases described above

Dependencies { .dependencies }

pytest-redis { .dependency }

Provides fixtures and fixture factories for testing code that depends on Redis, including support for authentication configuration.

Install with Tessl CLI

npx tessl i tessl/pypi-pytest-redis

tile.json