MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / test_sync_client_is_reachable

Function test_sync_client_is_reachable

sdk/python/tests/test_client.py:182–187  ·  view source on GitHub ↗

Test that sync client can check if service is reachable.

()

Source from the content-addressed store, hash-verified

180
181
182def test_sync_client_is_reachable():
183 """Test that sync client can check if service is reachable."""
184 client = DstackClient()
185 is_reachable = client.is_reachable()
186 assert isinstance(is_reachable, bool)
187 assert is_reachable
188
189
190@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

is_reachableMethod · 0.95
DstackClientClass · 0.90

Tested by

no test coverage detected