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

Function test_emit_event_validation

sdk/python/tests/test_client.py:306–313  ·  view source on GitHub ↗

Test emit event input validation.

()

Source from the content-addressed store, hash-verified

304
305
306def test_emit_event_validation():
307 """Test emit event input validation."""
308 client = DstackClient()
309
310 # Empty event name should raise error
311 with pytest.raises(ValueError) as exc_info:
312 client.emit_event("", "payload")
313 assert "event name cannot be empty" in str(exc_info.value)
314
315
316SIGN_TEST_DATA = b"Test message for signing"

Callers

nothing calls this directly

Calls 2

emit_eventMethod · 0.95
DstackClientClass · 0.90

Tested by

no test coverage detected