{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/14"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/4"}],"enrichment":{"capability":"A pytest plugin that provides fixtures for testing code that depends on Redis, managing both Redis process lifecycle and client connections during test execution.","skillfed_tags":["redis-testing","pytest-plugin","fixture-factory"],"use_cases":["Unit testing code that reads/writes to Redis without requiring manual server startup or teardown between tests.","Integration testing multi-instance Redis scenarios by creating separate redis_proc and redisdb fixtures with different configurations.","Testing against an external Redis instance in CI/CD by using redis_noproc fixture to connect to a pre-running container.","Validating Redis-based caching layers and session stores in web applications during test execution.","Testing Redis Pub/Sub or stream functionality by configuring multiple client fixtures against a single Redis process."],"what_it_does":"pytest-redis is a pytest plugin that automates Redis setup and teardown for test suites. It provides three fixtures: redisdb (function-scoped client that cleans databases after each test), redis_proc (session-scoped process that starts Redis on first use and stops at test end), and redis_noproc (connects to an already-running Redis instance). The plugin manages port allocation, process lifecycle, and client connections, allowing developers to write tests that interact with Redis without manual server management.\n\nThe plugin integrates with pytest's fixture system and supports extensive configuration through fixture factory arguments, command-line options, or pytest.ini settings. It handles Redis executable discovery, port binding, authentication, logging, and data persistence options. Developers can create multiple Redis fixtures with different configurations for testing scenarios requiring multiple Redis instances or specific server settings.","worth_installing":"Yes. The plugin is actively maintained, has low install friction, supports modern Python versions (3.10\u20133.14), and solves a real testing problem\u2014automating Redis lifecycle management. The LGPLv3+ license is permissive for most use cases via the linking exception. No known vulnerabilities. Install if your test suite depends on Redis."},"id":"pytest-redis","links":{"html":"https://skillfed.io/packages/pytest-redis","md":"https://skillfed.io/packages/pytest-redis.md","pypi":"https://pypi.org/project/pytest-redis/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-02-28","license_spdx":null,"license_treatment":"copyleft","name":"pytest-redis","python_support":"supports_current","summary":"Redis fixtures and fixture factories for Pytest."},"popularity":{"monthly_downloads":265492,"position":8324,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"4.0.0"}
