Redis fixtures and fixture factories for Pytest.
Overall
score
95%
Build a pytest test configuration system that manages multiple isolated Redis instances with different configurations for testing a cache manager module.
You are testing a cache manager that needs to work with different Redis configurations for different environments. Each environment should run on its own Redis instance to ensure complete test isolation.
Create custom fixture configurations for two independent Redis test environments:
Write tests in test/cache_manager.test.py that verify:
Configure fixtures in conftest.py to be available to all tests.
Provides Redis fixtures and fixture factories for Pytest.
@generates
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