mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 00:39:16 +02:00
See #272: updated API to return upload data on tracks
This commit is contained in:
parent
8489c79c89
commit
d3f8fb6cb0
16 changed files with 97 additions and 142 deletions
|
@ -549,11 +549,11 @@ def test_scan_page_trigger_next_page_scan_skip_if_same(mocker, factories, r_mock
|
|||
|
||||
|
||||
def test_clean_transcoding_cache(preferences, now, factories):
|
||||
preferences['music__transcoding_cache_duration'] = 60
|
||||
u1 = factories['music.UploadVersion'](
|
||||
preferences["music__transcoding_cache_duration"] = 60
|
||||
u1 = factories["music.UploadVersion"](
|
||||
accessed_date=now - datetime.timedelta(minutes=61)
|
||||
)
|
||||
u2 = factories['music.UploadVersion'](
|
||||
u2 = factories["music.UploadVersion"](
|
||||
accessed_date=now - datetime.timedelta(minutes=59)
|
||||
)
|
||||
|
||||
|
@ -562,4 +562,4 @@ def test_clean_transcoding_cache(preferences, now, factories):
|
|||
u2.refresh_from_db()
|
||||
|
||||
with pytest.raises(u1.__class__.DoesNotExist):
|
||||
u1.refresh_from_db()
|
||||
u1.refresh_from_db()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue