Add isolated integration coverage for the real playlistmanager store #50
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Sync tests replace beetsplug.playlistmanager with a fake module. Its PlaylistStore factory ignores the database path, and PlaylistDatabaseError is substituted with RuntimeError.
These useful unit tests cannot detect constructor-side mutations, snapshot behavior, actual transaction semantics, exception mismatches, or changes to the public playlistmanager API.
Proposed change
Keep the fast fake-based tests and add a small integration suite using a supported real playlistmanager version and temporary databases. Document a reproducible way to install/run the integration dependency.
Acceptance criteria
References:
tests/test_sync.py:24-48,beetsplug/appleplaylists/sync.py:65-71,99-108,193-194. Audit finding 9 (testing gap).