Test emit event input validation.
()
| 304 | |
| 305 | |
| 306 | def 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 | |
| 316 | SIGN_TEST_DATA = b"Test message for signing" |
nothing calls this directly
no test coverage detected