spotDL / spotify-downloader

Download your Spotify playlists and songs along with album art and metadata (from YouTube if a match is found).
https://spotdl.readthedocs.io/en/latest/
MIT License
15.55k stars 1.48k forks source link

test_matching: Use vcrpy #2127

Open hseg opened 3 days ago

hseg commented 3 days ago

Requested Feature

In view of #2111, any test that hits API endpoints should be using vcrpy, if only to make the tests less flaky. This is done for the tests in test/*/, but not for test/test_matching.py.

Possible implementation

Just add @pytest.mark.vcr() to tests/test_matching.py::test_ytmusic_matching and generate the cassettes.