From 7b60f92a48b4ff54604e8179503488800866ca6f Mon Sep 17 00:00:00 2001 From: Warry Date: Mon, 29 Dec 2025 20:54:26 +0100 Subject: feat: Refactor playlist management, error handling, and testing infrastructure - Improved playlist item handling with pagination, error logging, and dedicated request hooks. - Consolidated reusable helpers for track ID normalization, playlist validation, and removal logic. - Enhanced error handling by introducing `PlaylistNotFound` and `UserNotAuthenticated` exceptions. - Refined Pytest `qapp` fixture for headless CI compatibility and session-scoped reuse. - Replaced redundant fixtures in multiple test files for consistency. - Improved playlist management GUI with detailed debug logging for notifications and operations. - Added `deptry` configuration to handle transitive dependencies and ignored exclusions. - Updated Pytest and Tox configurations for consistent environment setup during CI/CD runs. --- tests/test_settings_dialog_structure.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'tests/test_settings_dialog_structure.py') diff --git a/tests/test_settings_dialog_structure.py b/tests/test_settings_dialog_structure.py index 3c492a5..3c16238 100644 --- a/tests/test_settings_dialog_structure.py +++ b/tests/test_settings_dialog_structure.py @@ -1,20 +1,10 @@ """Tests for the settings dialog category structure and organization.""" -import pytest from PySide6 import QtCore, QtWidgets from tidal_dl_ng.ui.dialog_settings import Ui_DialogSettings -@pytest.fixture -def qapp(): - """Create QApplication instance for tests.""" - app = QtWidgets.QApplication.instance() - if app is None: - app = QtWidgets.QApplication([]) - yield app - - class TestSettingsDialogStructure: """Test the structural integrity of the settings dialog.""" -- cgit v1.3.1