Skip to content

Commit 4927a4c

Browse files
committed
more more more more more more fixes
1 parent fa2b9dd commit 4927a4c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/tests/unit/ui/test_history_view_playlist_name.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
"""Unit tests for HistoryView playlist name resolution for Sync with Rekordbox from past searches."""
22

3+
import csv
34
import json
45
import os
6+
import sys
57
import tempfile
68
import unittest
79

810
from PySide6.QtWidgets import QApplication
9-
import sys
11+
12+
from cuepoint.ui.widgets.history_view import HistoryView
1013

1114
if not QApplication.instance():
1215
app = QApplication(sys.argv)
1316

14-
from cuepoint.ui.widgets.history_view import HistoryView
15-
1617

1718
class TestHistoryViewPlaylistName(unittest.TestCase):
1819
"""Test that playlist name for sync is taken from .meta.json, then CSV row, then filename."""
@@ -54,8 +55,7 @@ def test_meta_json_playlist_name_used_for_sync(self):
5455
# Load CSV (HistoryView loads and reads .meta.json)
5556
self.view.current_csv_path = csv_path
5657
with open(csv_path, "r", encoding="utf-8") as f:
57-
import csv as csv_module
58-
reader = csv_module.DictReader(f)
58+
reader = csv.DictReader(f)
5959
self.view.csv_rows = list(reader)
6060
self.view.filtered_rows = self.view.csv_rows.copy()
6161
# Simulate what load does: read .meta.json

0 commit comments

Comments
 (0)