Compare commits

...

2 Commits

Author SHA1 Message Date
user
6e1c32f22c fix: add pythonpath to pytest config for CI plugin imports
Some checks failed
CI / gitleaks (push) Failing after 3s
CI / lint (push) Successful in 23s
CI / test (3.11) (push) Failing after 2m48s
CI / test (3.13) (push) Successful in 2m50s
CI / test (3.12) (push) Successful in 2m52s
CI / build (push) Has been skipped
The patch("plugins._musicbrainz...") calls in tests need plugins/
on sys.path. Works locally from repo root but fails in CI containers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 16:57:00 +01:00
user
f470d6d958 fix: lint errors in test_musicbrainz (unused import, line length)
Some checks failed
CI / gitleaks (push) Failing after 4s
CI / lint (push) Successful in 23s
CI / test (3.11) (push) Failing after 2m43s
CI / test (3.13) (push) Failing after 2m47s
CI / test (3.12) (push) Failing after 2m50s
CI / build (push) Has been skipped
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 16:40:43 +01:00
2 changed files with 3 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ where = ["src"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]
[tool.ruff]
line-length = 99

View File

@@ -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