Skip to content
Draft
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
8 changes: 6 additions & 2 deletions python/packages/foundry_hosting/tests/test_toolbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,13 @@ def test_resolve_endpoint_prefers_explicit_env(monkeypatch: pytest.MonkeyPatch)
assert _resolve_toolbox_endpoint() == "https://host/toolboxes/tb/mcp?api-version=v1"


def test_resolve_endpoint_builds_from_project_and_name(monkeypatch: pytest.MonkeyPatch) -> None:
@pytest.mark.parametrize(
"project_endpoint",
["https://proj.example.com", "https://proj.example.com/", "https://proj.example.com///"],
)
def test_resolve_endpoint_builds_from_project_and_name(monkeypatch: pytest.MonkeyPatch, project_endpoint: str) -> None:
monkeypatch.delenv("TOOLBOX_ENDPOINT", raising=False)
monkeypatch.setenv("FOUNDRY_PROJECT_ENDPOINT", "https://proj.example.com/")
monkeypatch.setenv("FOUNDRY_PROJECT_ENDPOINT", project_endpoint)
monkeypatch.setenv("TOOLBOX_NAME", "mybox")
assert _resolve_toolbox_endpoint() == "https://proj.example.com/toolboxes/mybox/mcp?api-version=v1"

Expand Down
99 changes: 0 additions & 99 deletions python/tests/samples/hosting/test_toolbox_endpoint.py

This file was deleted.

Loading