mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 09:59:25 +02:00
Resolve "Per-user libraries" (use !368 instead)
This commit is contained in:
parent
b0ca181016
commit
2ea21994ee
144 changed files with 6749 additions and 5347 deletions
|
@ -30,8 +30,10 @@ def test_fix_track_files_bitrate_length(factories, mocker):
|
|||
|
||||
|
||||
def test_fix_track_files_size(factories, mocker):
|
||||
tf1 = factories["music.TrackFile"](size=1)
|
||||
tf2 = factories["music.TrackFile"](size=None)
|
||||
tf1 = factories["music.TrackFile"]()
|
||||
tf2 = factories["music.TrackFile"]()
|
||||
tf1.__class__.objects.filter(pk=tf1.pk).update(size=1)
|
||||
tf2.__class__.objects.filter(pk=tf2.pk).update(size=None)
|
||||
c = fix_track_files.Command()
|
||||
|
||||
mocker.patch("funkwhale_api.music.models.TrackFile.get_file_size", return_value=2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue