Files
WoW-Hybrid-gateway/tests/power_serializer_fixture.py
praxisandClaude Fable 5.2 7f2139d8d0 Offline test fixtures
883 files, from working commit b1a079a.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 01:32:48 +02:00

12 lines
660 B
Python

#!/usr/bin/env python3
"""Native power-notification byte checks; no live resource compatibility claim."""
import struct
import subprocess
import sys
for power,value in ((0,250),(1,250),(2,250),(3,250),(1,0),(0,0x7fffffff)):
body=struct.pack('<HQBI',70,4509,power,value)
actual=subprocess.run([sys.argv[1],'--power-update'],input=body,capture_output=True,check=True).stdout
expected=bytes.fromhex('03e09d11180108')+struct.pack('<IBI',1,power,value)
assert actual==expected,'Native power notification GUID, count or type/value order differs'
print('Six power notifications match native bytes; live current-power updates need separate evidence.')