feat(errors): add redacted typed failures

This commit is contained in:
Jason Morcos
2026-08-03 12:44:51 -07:00
parent 280939d646
commit c7e15a7dd3
8 changed files with 348 additions and 26 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import socket
import time
from smartthings_local.errors import ProbeError
from smartthings_local.protocol import dtls_probe as p
@@ -156,4 +157,4 @@ def test_diagnostic_mode_feeds_server_flight_back(monkeypatch):
_patch_sock(monkeypatch, fake)
r = p.probe('127.0.0.1', 5684, stateless=False, timeout=3.0)
assert r.outcome == p.LIVE # HVR still proved liveness
assert r.error is not None # OpenSSL processed the fed-back flight
assert isinstance(r.error, ProbeError) # OpenSSL processed the flight