Several tests quoted lines from published songs, and tests/fixtures/ held two complete community-made UltraStar charts of commercial songs, lyrics included. This replaces all of it with placeholder text.
Changes
test_align.py, test_transcribe.py, test_lyrics.py, test_notes.py: lyric lines are now counting words ("it's one two three" / "four five six seven eight", and so on). Every line keeps its word count, and the apostrophe, "Whoa," and "o'" tokens are kept, so the tests still check the same things.
tests/fixtures/sanctuary.txt and sweet_child.txt are replaced by two short hand-written charts. chart_crlf.txt is ASCII with CRLF endings, a decimal-comma BPM, medley headers, freestyle, golden and rap notes, and a line break with trailing spaces. chart_latin1.txt uses ISO-8859-1 bytes, which exercises the errors="replace" read, plus a negative pitch of -9 and an old two-number line break.
Not covered
The removed text is still in git history. Purging it would mean rewriting history and force-pushing main, so that's left for you to decide.
Testing
All tests touched here pass. In the full suite, test_cli.py::test_version fails only because my test environment doesn't install the package. test_web.py fails intermittently in a different test each run, and it does the same on main.
**Summary generated by LLM agent**
Several tests quoted lines from published songs, and `tests/fixtures/` held two complete community-made UltraStar charts of commercial songs, lyrics included. This replaces all of it with placeholder text.
## Changes
- `test_align.py`, `test_transcribe.py`, `test_lyrics.py`, `test_notes.py`: lyric lines are now counting words ("it's one two three" / "four five six seven eight", and so on). Every line keeps its word count, and the apostrophe, "Whoa," and "o'" tokens are kept, so the tests still check the same things.
- `tests/fixtures/sanctuary.txt` and `sweet_child.txt` are replaced by two short hand-written charts. `chart_crlf.txt` is ASCII with CRLF endings, a decimal-comma BPM, medley headers, freestyle, golden and rap notes, and a line break with trailing spaces. `chart_latin1.txt` uses ISO-8859-1 bytes, which exercises the `errors="replace"` read, plus a negative pitch of -9 and an old two-number line break.
## Not covered
The removed text is still in git history. Purging it would mean rewriting history and force-pushing `main`, so that's left for you to decide.
## Testing
All tests touched here pass. In the full suite, `test_cli.py::test_version` fails only because my test environment doesn't install the package. `test_web.py` fails intermittently in a different test each run, and it does the same on `main`.
The align, transcribe, lyrics and notes tests quoted lines from published
songs, and the UltraStar parser fixtures were complete community charts of
commercial songs. Replace them with counting words and two hand-written
charts that keep what the parser tests rely on: CRLF line endings,
Latin-1 bytes, a decimal-comma BPM, freestyle/golden/rap notes, negative
pitch and a two-number line break.
branderson
approved these changes 2026-10-09 18:14:49 -07:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary generated by LLM agent
Several tests quoted lines from published songs, and
tests/fixtures/held two complete community-made UltraStar charts of commercial songs, lyrics included. This replaces all of it with placeholder text.Changes
test_align.py,test_transcribe.py,test_lyrics.py,test_notes.py: lyric lines are now counting words ("it's one two three" / "four five six seven eight", and so on). Every line keeps its word count, and the apostrophe, "Whoa," and "o'" tokens are kept, so the tests still check the same things.tests/fixtures/sanctuary.txtandsweet_child.txtare replaced by two short hand-written charts.chart_crlf.txtis ASCII with CRLF endings, a decimal-comma BPM, medley headers, freestyle, golden and rap notes, and a line break with trailing spaces.chart_latin1.txtuses ISO-8859-1 bytes, which exercises theerrors="replace"read, plus a negative pitch of -9 and an old two-number line break.Not covered
The removed text is still in git history. Purging it would mean rewriting history and force-pushing
main, so that's left for you to decide.Testing
All tests touched here pass. In the full suite,
test_cli.py::test_versionfails only because my test environment doesn't install the package.test_web.pyfails intermittently in a different test each run, and it does the same onmain.