mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-09-04 00:27:14 +00:00
fix(cloud): request automatic Space launch (#2501)
Co-authored-by: dadachann <185672915+dadachann@users.noreply.github.com>
This commit is contained in:
@@ -134,6 +134,18 @@ class TestSpaceServiceGetOAuthAuthorizeUrl:
|
||||
# Verify - uses default URL
|
||||
assert 'https://space.langbot.app/auth/authorize' in result
|
||||
|
||||
def test_cloud_entry_url_requests_automatic_launch(self):
|
||||
"""Cloud's login entry must continue through the Space launcher."""
|
||||
ap = SimpleNamespace(
|
||||
instance_config=SimpleNamespace(
|
||||
data={'space': {'url': 'https://space.example/base/'}},
|
||||
),
|
||||
)
|
||||
|
||||
result = SpaceService(ap).get_cloud_entry_url()
|
||||
|
||||
assert result == 'https://space.example/base/cloud?environment=beta&auto_launch=1'
|
||||
|
||||
|
||||
class TestSpaceServiceGetUserByEmail:
|
||||
"""Tests for _get_user_by_email internal method."""
|
||||
|
||||
Reference in New Issue
Block a user