Closed blacklight closed 1 year ago
@BlackLight @2e0byo This PR fails all tests; do we need to update the tests as well?
By the way, sorry for not processing this PR sooner.
@tehkillerbee I'll get on this shortly.
I think there was actually a bug in this PR. We want to add the tidal playlist, not the mopidy playlist, to _current_tidal_playlists
. So I think the test suite actually earned its keep.
However once this is fixed we need to fix the test suite, as create()
now triggers a refresh()
, so we have to mock playlist.tracks
(to return nothing, and have a __name__
).
The attached patch fixes this. 0001-fix-cache-tidal-playlist-not-mopidy-playlist.txt
Thanks for the fix @2e0byo!
Patch coverage: 100.00
% and no project coverage change.
Comparison is base (
d6bf226
) 100.00% compared to head (3df712d
) 100.00%.
:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
If
playlist_cache_refresh_secs
is unset then the playlist won't be automatically added to_current_tidal_playlists
. We should do it explicitly if we want the backend to be able to immediately get its contents.