mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 11:49:24 +02:00
Fix #1011: Ensure tracks linked to skipped upload can be pruned
This commit is contained in:
parent
8cd40699e8
commit
c7a3dd9da5
3 changed files with 11 additions and 2 deletions
|
@ -867,6 +867,8 @@ def test_clean_transcoding_cache(preferences, now, factories):
|
|||
|
||||
def test_get_prunable_tracks(factories):
|
||||
prunable_track = factories["music.Track"]()
|
||||
# track is still prunable if it has a skipped upload linked to it
|
||||
factories["music.Upload"](import_status="skipped", track=prunable_track)
|
||||
# non prunable tracks
|
||||
factories["music.Upload"]()
|
||||
factories["favorites.TrackFavorite"]()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue