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
5 changes: 4 additions & 1 deletion tools/developer_tools/bely-cli/src/bely_cli/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ def cmd_auth_verify(fmt="text"):
return

authenticated = auth.verify()
message = "Authenticated." if authenticated else "Authentication token is invalid or expired."
message = (
"Authenticated." if authenticated
else "Authentication token is invalid or expired. Run 'bely-cli auth login' to authenticate again."
)
print_result({"authenticated": authenticated}, message, fmt)


Expand Down
6 changes: 5 additions & 1 deletion tools/developer_tools/bely-cli/test/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ def test_verify_reports_invalid_or_expired_token(self):
with redirect_stdout(buf):
commands.cmd_auth_verify()

self.assertEqual(buf.getvalue(), "Authentication token is invalid or expired.\n")
self.assertEqual(
buf.getvalue(),
"Authentication token is invalid or expired. "
"Run 'bely-cli auth login' to authenticate again.\n",
)


class CmdNewDocTests(unittest.TestCase):
Expand Down
Loading