From f470d6d95828f76c91d6e452e4fccc9d41c0fa58 Mon Sep 17 00:00:00 2001 From: user Date: Tue, 24 Feb 2026 16:40:43 +0100 Subject: [PATCH] fix: lint errors in test_musicbrainz (unused import, line length) Co-Authored-By: Claude Opus 4.6 --- tests/test_musicbrainz.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_musicbrainz.py b/tests/test_musicbrainz.py index c672720..4dd956d 100644 --- a/tests/test_musicbrainz.py +++ b/tests/test_musicbrainz.py @@ -4,7 +4,6 @@ import importlib.util import json import sys import time -from io import BytesIO from unittest.mock import MagicMock, patch # -- Load module directly ---------------------------------------------------- @@ -305,6 +304,7 @@ class TestMbFindSimilarRecordings: "Tool", ["rock", "metal", "prog"], ) call_args = mock_req.call_args - query = call_args[1]["query"] if "query" in (call_args[1] or {}) else call_args[0][1].get("query", "") + args = call_args[1] or {} + query = args.get("query") or call_args[0][1].get("query", "") # Verify the query contains both tag references assert "rock" in query or "metal" in query