mirror of
https://github.com/nomadkaraoke/karaoke-gen.git
synced 2026-11-20 13:07:57 +09:00
## 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>
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 functionalitytest_file_operations.py: Tests for file operations (copy, download, convert)test_metadata.py: Tests for metadata extraction and parsingtest_lyrics.py: Tests for lyrics processingtest_audio.py: Tests for audio processing and separationtest_video.py: Tests for video creation and processingtest_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.