move rename-profile to clients rename

This commit is contained in:
2026-04-10 13:38:54 +02:00
parent 64970c8c86
commit 57c4ccc48a
6 changed files with 23 additions and 16 deletions
+4 -4
View File
@@ -29,16 +29,16 @@ def test_project_version_falls_back_to_installed_package_metadata():
):
assert _project_version() == "9.9.9"
def test_rename_profile_uses_command_level_browser_target():
def test_clients_rename_uses_command_level_browser_target():
with patch("browser_cli.cli.send_command") as send_command:
result = CliRunner().invoke(main, ["rename-profile", "--browser", "old-id", "work"])
result = CliRunner().invoke(main, ["clients", "rename", "--browser", "old-id", "work"])
assert result.exit_code == 0
send_command.assert_called_once_with("clients.rename_profile", {"alias": "work"}, profile="old-id")
def test_rename_profile_uses_global_browser_target_when_set():
def test_clients_rename_uses_global_browser_target_when_set():
with patch("browser_cli.cli.send_command") as send_command:
result = CliRunner().invoke(main, ["--browser", "old-id", "rename-profile", "work"])
result = CliRunner().invoke(main, ["--browser", "old-id", "clients", "rename", "work"])
assert result.exit_code == 0
send_command.assert_called_once_with("clients.rename_profile", {"alias": "work"}, profile=None)