Align with xiaohe wheel/pip install: remove sync_workspace and desktop launcher coupling from upgrade/switch flows.
14 lines
401 B
Python
14 lines
401 B
Python
"""Tests for myagents.commands.switch (legacy shim)."""
|
|
|
|
from click.testing import CliRunner
|
|
|
|
from myagents.commands import switch as sw_mod
|
|
|
|
|
|
class TestSwitchHelp:
|
|
def test_group_mentions_upgrade(self) -> None:
|
|
result = CliRunner().invoke(sw_mod.switch_cmd, [])
|
|
assert result.exit_code == 0
|
|
assert "xiaohe upgrade" in result.output
|
|
assert "agent" in result.output
|