Skip to content

fix(test): use Pop/Rock genre in Qobuz fixture to exercise genre splitting#1001

Open
berettavexee wants to merge 1 commit into
nathom:devfrom
berettavexee:fix/qobuz-genre-fixture
Open

fix(test): use Pop/Rock genre in Qobuz fixture to exercise genre splitting#1001
berettavexee wants to merge 1 commit into
nathom:devfrom
berettavexee:fix/qobuz-genre-fixture

Conversation

@berettavexee

Copy link
Copy Markdown

Summary

test_album_metadata_qobuz has been failing because the fixture qobuz_album_resp.json sets the genre name to "Rock", but the test asserts both "Pop" and "Rock" are present in the parsed genre list.

The from_qobuz parser uses a regex ([^→\/]+) to split genre names on / and separators. With "Rock" as the genre name, no splitting occurs and only ["Rock"] is returned — making the "Pop" in m.genre assertion always fail.

Changing the fixture genre to "Pop/Rock" makes the parser produce ["Pop", "Rock"], which:

  • fixes the failing assertion
  • actually exercises the genre-splitting logic the test was designed to verify

Test plan

  • test_album_metadata_qobuz passes
  • test_track_metadata_qobuz still passes
  • Full test suite unaffected

🤖 Generated with Claude Code

…ting

The test asserts both "Pop" and "Rock" are present after parsing, which
requires a slash-separated genre name. The fixture had only "Rock", making
the split test meaningless and the Pop assertion impossible to pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant