From eeb51988fc1e334e4b31cfe41eb7946dbe83aba9 Mon Sep 17 00:00:00 2001
From: Ernesto Rico Schmidt <ernesto@helsinki.at>
Date: Fri, 15 Nov 2024 15:34:18 -0400
Subject: [PATCH] test: rename usage of line_num -> order in factories & tests

---
 program/tests/factories.py      | 2 +-
 program/tests/test_playlists.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/program/tests/factories.py b/program/tests/factories.py
index eb82b75f..7f0fb629 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 0a799987..3b4b6566 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)
-- 
GitLab