From 7221361efccd9fd7f1a61e3d678721e02331e2a0 Mon Sep 17 00:00:00 2001 From: Marco Burro Date: Thu, 20 Nov 2025 16:42:29 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Fix=20logout=20suggestion?= =?UTF-8?q?=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fastapi_cloud_cli/commands/login.py | 2 +- tests/test_cli_login.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/fastapi_cloud_cli/commands/login.py b/src/fastapi_cloud_cli/commands/login.py index a3378ee..9a0ddf0 100644 --- a/src/fastapi_cloud_cli/commands/login.py +++ b/src/fastapi_cloud_cli/commands/login.py @@ -92,7 +92,7 @@ def login() -> Any: with get_rich_toolkit(minimal=True) as toolkit: toolkit.print("You are already logged in.") toolkit.print( - "Run [bold]fastapi logout[/bold] first if you want to switch accounts." + "Run [bold]fastapi cloud logout[/bold] first if you want to switch accounts." ) return diff --git a/tests/test_cli_login.py b/tests/test_cli_login.py index 22d856a..6d1f7ee 100644 --- a/tests/test_cli_login.py +++ b/tests/test_cli_login.py @@ -174,7 +174,10 @@ def test_notify_already_logged_in_user( assert result.exit_code == 0 assert "You are already logged in." in result.output - assert "Run fastapi logout first if you want to switch accounts." in result.output + assert ( + "Run fastapi cloud logout first if you want to switch accounts." + in result.output + ) @pytest.mark.respx(base_url=settings.base_api_url)