diff --git a/program/tests/factories.py b/program/tests/factories.py index eb82b75ffef0454dfd5d95ae1e412cff35983eb7..7f0fb629f6c5dce806f2c5ea15bae4c7c581b11a 100644 --- a/program/tests/factories.py +++ b/program/tests/factories.py @@ -182,5 +182,5 @@ class PlaylistEntryFactory(DjangoModelFactory): duration = 73 file_id = 42 - line_num = Sequence(lambda n: int(n)) + order = Sequence(lambda n: int(n)) uri = f"file://0/{file_id}" diff --git a/program/tests/test_playlists.py b/program/tests/test_playlists.py index 0a79998716ce7c0584cba4388a53c91c4a5719c3..3b4b656607c53cdb9195aee5f174c4ad2593e427 100644 --- a/program/tests/test_playlists.py +++ b/program/tests/test_playlists.py @@ -27,7 +27,7 @@ def playlist_entries_data(show, file_id, entries=1): { "duration": random.uniform(1975, 2024), "file_id": file_id, - "line_num": n, + "order": n + 1, "uri": f"file://{show.id}/{file_id}", } for n in range(entries)