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

Function test_async_client_is_reachable

sdk/python/tests/test_client.py:191–196  ·  view source on GitHub ↗

Test that async client can check if service is reachable.

()

Source from the content-addressed store, hash-verified

189
190@pytest.mark.asyncio
191async def test_async_client_is_reachable():
192 """Test that async client can check if service is reachable."""
193 client = AsyncDstackClient()
194 is_reachable = await client.is_reachable()
195 assert isinstance(is_reachable, bool)
196 assert is_reachable
197
198
199def test_tls_key_as_uint8array():

Callers

nothing calls this directly

Calls 2

is_reachableMethod · 0.95
AsyncDstackClientClass · 0.90

Tested by

no test coverage detected