Files
karaoke-gen/tests/unit
Andrew Beveridge ☄️andClaude Opus 5.5 5b2a0f8c3e feat(error-monitor): watch decide's mb-refresh job (#1067)
## Summary
- Adds `mb-refresh` (karaoke-decide's new weekly MusicBrainz → BigQuery
Cloud Run Job, nomadkaraoke/karaoke-decide PR to follow) to
`MONITORED_CLOUD_RUN_JOBS`, so failed refreshes and staleness warnings
raise error-monitor patterns / Discord alerts.
- Version bump 0.245.0 → 0.245.1.

## Testing
- `pytest tests/unit/services/error_monitor` — 361 passed (count +
membership assertions updated).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Reliability**
* The weekly MusicBrainz data refresh is now included in service
monitoring. Issues with the refresh can be detected alongside problems
with other monitored services, improving visibility into the
availability of refreshed music data.
* **Release**
  * This update is version 0.245.1.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 23:07:47 -04:00
..
2025-12-27 22:36:22 -05:00

Unit Tests for KaraokePrep

This directory contains unit tests for the KaraokePrep class.

Test Files

The tests are organized into the following files:

  • test_initialization.py: Tests for initialization and basic functionality
  • test_file_operations.py: Tests for file operations (copy, download, convert)
  • test_metadata.py: Tests for metadata extraction and parsing
  • test_lyrics.py: Tests for lyrics processing
  • test_audio.py: Tests for audio processing and separation
  • test_video.py: Tests for video creation and processing
  • test_async.py: Tests for async methods

Running the Tests

To run the tests, you need to have the test dependencies installed:

pip install -r requirements-test.txt

Then you can run the tests with:

python run_tests.py

This will run all the tests and generate a coverage report.

Checking Test Files

If you want to check if the test files are valid Python code without running the tests, you can use:

python check_tests.py

This will check if all the test files can be imported without errors.

Test Coverage

The tests aim to cover all the functionality of the KaraokePrep class. The coverage report will show you which parts of the code are covered by the tests.