16 lines
497 B
Python
16 lines
497 B
Python
"""Protocol enum display labels."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from line_laser_modbus.models import DeviceStatus, ModeCommand
|
|
|
|
from line_laser_hmi.labels import mode_label, status_label
|
|
|
|
|
|
def test_protocol_labels_follow_v14_names():
|
|
"""UI labels should use the V1.4 mode/status wording."""
|
|
|
|
assert mode_label(ModeCommand.MANUAL_TEACHING) == "手动示教"
|
|
assert mode_label(ModeCommand.EMERGENCY_STOP) == "紧急停止"
|
|
assert status_label(DeviceStatus.IDLE) == "空闲"
|