/
/
# What does this implement/fix?
The tests added in #5818 for the new EP/single suffix spellings only
ever used the "EP" wording, so the "Single" side of the same code went
untested — including the lowercase, bracketed form that was the only
spelling actually seen in the reporter's library ("... (single)" from a
local file library).
This extends those tests to the single spellings. Tests only, no
behaviour change.
**Related issue (if applicable):**
- follow-up to #5818
## Types of changes
- [ ] Bugfix (non-breaking change which fixes an issue) — `bugfix`
- [ ] New feature (non-breaking change which adds functionality) —
`new-feature`
- [ ] Enhancement to an existing feature — `enhancement`
- [ ] New music/player/metadata/plugin provider — `new-provider`
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected) — `breaking-change`
- [ ] Refactor (no behaviour change) — `refactor`
- [ ] Documentation only — `documentation`
- [x] Maintenance / chore — `maintenance`
- [ ] CI / workflow change — `ci`
- [ ] Dependencies bump — `dependencies`
Changes:
- Cover `-Single`, `(Single)`, `[Single]` and lowercase `(single)` next
to the existing EP spellings in the duplicate-track, album-insert and
duplicate-album tests.
- Extend the duplicate-album test the same way — it only had the dashed
`- EP` spelling and so proved nothing about the rest.
- Each new case was checked to actually pull weight: with the title
matching deliberately broken (dropping the bracket trim, the case fold,
or the suffix length), the new cases fail. The lowercase spelling is the
only case in these files that catches a lost case fold.
## Checklist
- [x] The code change is tested and works locally.
- [x] `pre-commit run --all-files` passes.
- [x] `pytest` passes, and tests have been added/updated under `tests/`
where applicable.
- [ ] For changes to shared models, the companion PR in
`music-assistant/models` is linked.
- [ ] For changes affecting the UI, the companion PR in
`music-assistant/frontend` is linked.
- [x] I have read and complied with the project's [AI
Policy](https://github.com/music-assistant/.github/blob/main/AI_POLICY.md)
for any AI-assisted contributions.
- [ ] I have [raised a PR against the documentation
repository](https://github.com/music-assistant/music-assistant.io/blob/main/CONTRIBUTING.md)
targeting the main or beta branch as appropriate.