Test sync emit event functionality.
()
| 292 | |
| 293 | |
| 294 | def test_sync_emit_event(): |
| 295 | """Test sync emit event functionality.""" |
| 296 | client = DstackClient() |
| 297 | error = None |
| 298 | try: |
| 299 | client.emit_event("test-event", "test payload") |
| 300 | client.emit_event("test-event-bytes", b"test payload bytes") |
| 301 | except Exception as exc: # pragma: no cover - behavior depends on runtime mode |
| 302 | error = exc |
| 303 | assert_emit_event_behavior(error) |
| 304 | |
| 305 | |
| 306 | def test_emit_event_validation(): |
nothing calls this directly
no test coverage detected