See #223: api for listing/managing library files

This commit is contained in:
Eliot Berriot 2018-05-29 00:07:20 +02:00
parent 2569f136b7
commit c7782693bc
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
10 changed files with 213 additions and 0 deletions

View file

@ -117,6 +117,11 @@ class ImportJobFactory(factory.django.DjangoModelFactory):
status='finished',
audio_file=None,
)
with_audio_file = factory.Trait(
status='finished',
audio_file=factory.django.FileField(
from_path=os.path.join(SAMPLES_PATH, 'test.ogg')),
)
@registry.register(name='music.FileImportJob')