move rename-profile to clients rename
This commit is contained in:
+4
-4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user