MCPcopy Index your code
hub / github.com/simstudioai/sim / test_set_base_url

Function test_set_base_url

packages/python-sdk/tests/test_client.py:31–35  ·  view source on GitHub ↗

Test setting a new base URL.

()

Source from the content-addressed store, hash-verified

29
30
31def test_set_base_url():
32 """Test setting a new base URL."""
33 client = SimStudioClient(api_key="test-api-key")
34 client.set_base_url("https://new.sim.ai/")
35 assert client.base_url == "https://new.sim.ai"
36
37
38def test_set_base_url_strips_trailing_slash():

Callers

nothing calls this directly

Calls 2

set_base_urlMethod · 0.95
SimStudioClientClass · 0.90

Tested by

no test coverage detected