TODO: Running & writing tests
# All tests
uv run pytest
# With verbose output
uv run pytest -v
# Specific file
uv run pytest tests/test_redis_playlist_store.py
# With coverage
uv run pytest --cov=stream_processor --cov-report=term-missingtests/
├── conftest.py # Shared fixtures
├── test_models.py # Data model tests
└── test_redis_playlist_store.py # Redis store tests
- Use pytest fixtures for setup
- Use
fakeredisfor Redis mocking - Use
pytest-asynciofor async tests
Available in conftest.py:
fake_redis- FakeRedis instanceplaylist_store- RedisPlaylistStore with fake Redissample_client_id/sample_device_id- Test identifiers