Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/fastapi_cloud_cli/commands/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,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

Expand Down
5 changes: 4 additions & 1 deletion tests/test_cli_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down