Compare commits
2 Commits
28f4c63e99
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6e1c32f22c | ||
|
|
f470d6d958 |
@@ -22,6 +22,7 @@ where = ["src"]
|
|||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
testpaths = ["tests"]
|
testpaths = ["tests"]
|
||||||
|
pythonpath = ["."]
|
||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
line-length = 99
|
line-length = 99
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import importlib.util
|
|||||||
import json
|
import json
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
from io import BytesIO
|
|
||||||
from unittest.mock import MagicMock, patch
|
from unittest.mock import MagicMock, patch
|
||||||
|
|
||||||
# -- Load module directly ----------------------------------------------------
|
# -- Load module directly ----------------------------------------------------
|
||||||
@@ -305,6 +304,7 @@ class TestMbFindSimilarRecordings:
|
|||||||
"Tool", ["rock", "metal", "prog"],
|
"Tool", ["rock", "metal", "prog"],
|
||||||
)
|
)
|
||||||
call_args = mock_req.call_args
|
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
|
# Verify the query contains both tag references
|
||||||
assert "rock" in query or "metal" in query
|
assert "rock" in query or "metal" in query
|
||||||
|
|||||||
Reference in New Issue
Block a user