See #195: set bitrate, duration and size when importing file

This commit is contained in:
Eliot Berriot 2018-05-15 21:59:29 +02:00
parent 7425a8ea4d
commit 1bc4ceab9e
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
9 changed files with 126 additions and 7 deletions

View file

@ -54,6 +54,10 @@ class TrackFileFactory(factory.django.DjangoModelFactory):
audio_file = factory.django.FileField(
from_path=os.path.join(SAMPLES_PATH, 'test.ogg'))
bitrate = None
size = None
duration = None
class Meta:
model = 'music.TrackFile'