Skip to content

Commit 4a2af33

Browse files
buurropatrick91
andauthored
✏️ Fix logout suggestion message (#118)
Co-authored-by: Patrick Arminio <[email protected]>
1 parent 66dbdf5 commit 4a2af33

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/fastapi_cloud_cli/commands/login.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def login() -> Any:
9393
with get_rich_toolkit(minimal=True) as toolkit:
9494
toolkit.print("You are already logged in.")
9595
toolkit.print(
96-
"Run [bold]fastapi logout[/bold] first if you want to switch accounts."
96+
"Run [bold]fastapi cloud logout[/bold] first if you want to switch accounts."
9797
)
9898
return
9999

tests/test_cli_login.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,10 @@ def test_notify_already_logged_in_user(
174174

175175
assert result.exit_code == 0
176176
assert "You are already logged in." in result.output
177-
assert "Run fastapi logout first if you want to switch accounts." in result.output
177+
assert (
178+
"Run fastapi cloud logout first if you want to switch accounts."
179+
in result.output
180+
)
178181

179182

180183
@pytest.mark.respx(base_url=settings.base_api_url)

0 commit comments

Comments
 (0)