Skip to content
Snippets Groups Projects
Verified Commit cb251108 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

test: add PlaylistEntryFactory

parent 811ea150
No related branches found
No related tags found
1 merge request!59Add playlists
......@@ -17,6 +17,7 @@ from program.models import (
MusicFocus,
Note,
Playlist,
PlaylistEntry,
Profile,
RadioSettings,
RRule,
......@@ -173,3 +174,13 @@ class CBAFactory(DjangoModelFactory):
class PlaylistFactory(DjangoModelFactory):
class Meta:
model = Playlist
class PlaylistEntryFactory(DjangoModelFactory):
class Meta:
model = PlaylistEntry
duration = 73
file_id = 42
line_num = Sequence(lambda n: int(n))
uri = f"file://0/{file_id}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment