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

Function assert_emit_event_behavior

sdk/python/tests/test_client.py:253–258  ·  view source on GitHub ↗
(error: Exception | None)

Source from the content-addressed store, hash-verified

251
252
253def assert_emit_event_behavior(error: Exception | None) -> None:
254 if "DSTACK_SIMULATOR_ENDPOINT" in os.environ:
255 assert isinstance(error, httpx.HTTPStatusError)
256 assert error.response.status_code == 400
257 else:
258 assert error is None, f"emit_event unexpectedly failed: {error}"
259
260
261def test_non_unix_socket_endpoints():

Callers 2

test_emit_eventFunction · 0.85
test_sync_emit_eventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected