summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorblasty <peter@haxx.in>2026-07-24 14:36:05 +0200
committerblasty <peter@haxx.in>2026-07-24 14:36:05 +0200
commitb048877c8b6821be8248115c52ed967280b9e8b0 (patch)
tree327f36b818fc9c24404e4dd7098d712d04b32a5f
parenttests: add --worker <binary> to run the pilot suite against the idalib worker (diff)
downloadida-tui-b048877c8b6821be8248115c52ed967280b9e8b0.tar.gz
ida-tui-b048877c8b6821be8248115c52ed967280b9e8b0.tar.xz
ida-tui-b048877c8b6821be8248115c52ed967280b9e8b0.zip
tests: pass url=""/db=None to IdaTui in the worker pilot path
IdaTui.__init__ requires url and db positionally (the launcher passes url=args.url, db=None even for the worker). The pilot's --worker branch omitted them -> TypeError. Pass url="" (unused by the worker backend) and db=None.
-rw-r--r--tests/test_scenarios.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_scenarios.py b/tests/test_scenarios.py
index eed3c59..09335d7 100644
--- a/tests/test_scenarios.py
+++ b/tests/test_scenarios.py
@@ -1655,7 +1655,7 @@ async def run(db, only=None, binary=None, backend="mcp"):
if backend == "worker":
# Own idalib worker: opens the binary in-process over a unix socket, no
# supervisor. Mirrors launch.py's worker branch.
- app = IdaTui(open_path=binary, ensure_server=False,
+ app = IdaTui(url="", db=None, open_path=binary, ensure_server=False,
backend="worker", keepalive=False)
else:
url = os.environ.get("IDA_MCP_URL", "http://127.0.0.1:8745/mcp")