Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix(cli): drop hanging skill-train root CLI dispatch unit test

wudawei07a2a9e9b166
diff --git a/tests/unit_tests/cli/test_skill_train_cli.py b/tests/unit_tests/cli/test_skill_train_cli.py
index 8657755896..b8730e6640 100644
--- a/tests/unit_tests/cli/test_skill_train_cli.py
+++ b/tests/unit_tests/cli/test_skill_train_cli.py
@@ -208,16 +208,3 @@ class TestRun:
raising=False,
)
assert st.run_skill_train(args) == 0
-
-
-class TestMainDispatch:
- @staticmethod
- def test_root_cli_routes_skill_train(monkeypatch):
- from jiuwenswarm.cli import main as root_main
-
- monkeypatch.setenv("JIUWENSWARM_SKIP_DOTENV", "1")
- monkeypatch.setattr(sys, "argv", ["jiuwenswarm", "skill-train", "--env", "docvqa", "--skip-gateway-check"])
- monkeypatch.setattr(st, "run_skill_train", lambda args: 7 if args.env == "docvqa" else 1)
- with pytest.raises(SystemExit) as exc:
- root_main.main()
- assert exc.value.code == 7