mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 10:29:20 +02:00
10 lines
311 B
Python
10 lines
311 B
Python
from funkwhale_api.manage import serializers
|
|
|
|
|
|
def test_manage_track_file_action_delete(factories):
|
|
tfs = factories["music.TrackFile"](size=5)
|
|
s = serializers.ManageTrackFileActionSerializer(queryset=None)
|
|
|
|
s.handle_delete(tfs.__class__.objects.all())
|
|
|
|
assert tfs.__class__.objects.count() == 0
|