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
3 changes: 2 additions & 1 deletion syft/sync/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ def _resolve_login_params(
token_path = token_path or settings.token_path
if not token_path:
raise NotImplementedError(
"Jupyter login is only supported with a token path"
"Running outside Colab: pass token_path=... to login_do()/login_ds(). "
"See docs/auth.md to create a token (about 15 minutes)."
)
if email is None:
raise ValueError("Email is required for Jupyter login")
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/without_unit_coverage/test_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def test_login_ds_missing_token_path_raises(monkeypatch):
"""Test that login_ds raises error when token_path is missing in Jupyter env."""
# Unset the env var so the test can verify the error is raised
monkeypatch.delenv("SYFT_TOKEN_PATH", raising=False)
with pytest.raises(NotImplementedError, match="token path"):
with pytest.raises(NotImplementedError, match="token_path"):
sy.login_ds(
email="test@test.com",
token_path=None,
Expand All @@ -192,7 +192,7 @@ def test_login_do_missing_token_path_raises(monkeypatch):
"""Test that login_do raises error when token_path is missing in Jupyter env."""
# Unset the env var so the test can verify the error is raised
monkeypatch.delenv("SYFT_TOKEN_PATH", raising=False)
with pytest.raises(NotImplementedError, match="token path"):
with pytest.raises(NotImplementedError, match="token_path"):
sy.login_do(
email="test@test.com",
token_path=None,
Expand Down
Loading