[otci] update to support more commands (#11015)

* otci now supports all commands the Thread Test Harness requires
* improve typehinting across the board
* fixes some typos
This commit is contained in:
Thomas
2025-03-18 22:53:22 -05:00
committed by GitHub
parent 21ba5bbea8
commit ba6a803ed5
10 changed files with 649 additions and 228 deletions
+2 -2
View File
@@ -144,8 +144,8 @@ def check_tlv_request_tlv(command_msg, check_type, tlv_id):
elif check_type == CheckType.NOT_CONTAIN:
if tlv_request_tlv is not None:
assert (any(tlv_id == tlv for tlv in tlv_request_tlv.tlvs) is
False), "Error: The msg contains TLV Request TLV ID: {}".format(tlv_id)
assert (not any(tlv_id == tlv
for tlv in tlv_request_tlv.tlvs)), f"Error: The msg contains TLV Request TLV ID: {tlv_id}"
elif check_type == CheckType.OPTIONAL:
if tlv_request_tlv is not None: