Skip to content

Commit 6163898

Browse files
committed
fix: add comments for dual-server to test fixtures
1 parent 3149b22 commit 6163898

6 files changed

Lines changed: 24 additions & 0 deletions

File tree

packages/toolbox-adk/tests/integration/test_integration.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ class TestToolboxAdkIntegration:
5252
async def test_load_toolset_and_run(self):
5353
# Auth: TOOLBOX_IDENTITY for simplicity in this local test as we don't have ADK identity setup.
5454

55+
# Note: The STABLE URL passed here is automatically patched by the
56+
# 'patch_toolbox_client_url' fixture to run against both
57+
# the STABLE (5000) and DRAFT (5001) servers.
5558
toolset = ToolboxToolset(
5659
server_url=TOOLBOX_SERVER_URL_STABLE,
5760
toolset_name="my-toolset",

packages/toolbox-core/tests/test_e2e.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
@pytest_asyncio.fixture(scope="function")
3232
async def toolbox():
3333
"""Creates a ToolboxClient instance shared by all tests in this module."""
34+
# Note: The STABLE URL passed here is automatically patched by the
35+
# 'patch_toolbox_client_url' fixture to run against both
36+
# the STABLE (5000) and DRAFT (5001) servers.
3437
toolbox = ToolboxClient(TOOLBOX_SERVER_URL_STABLE, protocol=Protocol.MCP)
3538
try:
3639
yield toolbox

packages/toolbox-core/tests/test_e2e_mcp.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
)
3434
async def toolbox(request):
3535
"""Creates a ToolboxClient instance shared by all tests in this module."""
36+
# Note: The STABLE URL passed here is automatically patched by the
37+
# 'patch_toolbox_client_url' fixture to run against both
38+
# the STABLE (5000) and DRAFT (5001) servers.
3639
toolbox = ToolboxClient(TOOLBOX_SERVER_URL_STABLE, protocol=Protocol(request.param))
3740
try:
3841
yield toolbox

packages/toolbox-core/tests/test_sync_e2e.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
@pytest.fixture(scope="module")
2626
def toolbox():
2727
"""Creates a ToolboxSyncClient instance shared by all tests in this module."""
28+
# Note: The STABLE URL passed here is automatically patched by the
29+
# 'patch_toolbox_client_url' fixture to run against both
30+
# the STABLE (5000) and DRAFT (5001) servers.
2831
toolbox = ToolboxSyncClient(TOOLBOX_SERVER_URL_STABLE)
2932
try:
3033
yield toolbox

packages/toolbox-langchain/tests/test_e2e.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ class TestE2EClientAsync:
5151
@pytest.fixture(scope="function")
5252
def toolbox(self):
5353
"""Provides a ToolboxClient instance for each test."""
54+
# Note: The STABLE URL passed here is automatically patched by the
55+
# 'patch_toolbox_client_url' fixture to run against both
56+
# the STABLE (5000) and DRAFT (5001) servers.
5457
toolbox = ToolboxClient(TOOLBOX_SERVER_URL_STABLE)
5558
return toolbox
5659

@@ -206,6 +209,9 @@ class TestE2EClientSync:
206209
@pytest.fixture(scope="session")
207210
def toolbox(self):
208211
"""Provides a ToolboxClient instance for each test."""
212+
# Note: The STABLE URL passed here is automatically patched by the
213+
# 'patch_toolbox_client_url' fixture to run against both
214+
# the STABLE (5000) and DRAFT (5001) servers.
209215
toolbox = ToolboxClient(TOOLBOX_SERVER_URL_STABLE)
210216
return toolbox
211217

packages/toolbox-llamaindex/tests/test_e2e.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ class TestE2EClientAsync:
5151
@pytest.fixture(scope="function")
5252
def toolbox(self):
5353
"""Provides a ToolboxClient instance for each test."""
54+
# Note: The STABLE URL passed here is automatically patched by the
55+
# 'patch_toolbox_client_url' fixture to run against both
56+
# the STABLE (5000) and DRAFT (5001) servers.
5457
toolbox = ToolboxClient(TOOLBOX_SERVER_URL_STABLE)
5558
return toolbox
5659

@@ -206,6 +209,9 @@ class TestE2EClientSync:
206209
@pytest.fixture(scope="session")
207210
def toolbox(self):
208211
"""Provides a ToolboxClient instance for each test."""
212+
# Note: The STABLE URL passed here is automatically patched by the
213+
# 'patch_toolbox_client_url' fixture to run against both
214+
# the STABLE (5000) and DRAFT (5001) servers.
209215
toolbox = ToolboxClient(TOOLBOX_SERVER_URL_STABLE)
210216
return toolbox
211217

0 commit comments

Comments
 (0)