Skip to content

Give your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.

test: name fake global npm launchers .cmd on Windows

Pnant9045b5e805f0
diff --git a/tests/test_manage.py b/tests/test_manage.py
index 1376c24e..161db9c9 100644
--- a/tests/test_manage.py
+++ b/tests/test_manage.py
@@ -102,7 +102,7 @@ def env(monkeypatch):
version = versions.get(tool.name, "1.2.3")
if tool.kind in ("pip", "ffmpeg"):
shutil.rmtree(tools.tool_dir(tool.name) / "venv", ignore_errors=True) # as the real installer
- paths = ([tools._npm_global_bin() / c for c in tool.commands] if global_
+ paths = ([tools._npm_global_bin() / (c + (".cmd" if tools._WIN else "")) for c in tool.commands] if global_
else [tools._private_bin(tool, c) for c in tool.commands])
for p in paths:
_fake_exe(p, version)