fix(tests): remove lint warnings/errors

This commit is contained in:
Steven Palma
2025-03-07 14:45:09 +01:00
parent e59ef036e1
commit 0eb56cec14
24 changed files with 163 additions and 133 deletions

View File

@@ -24,10 +24,9 @@ DEFAULT_BAUDRATE = 9_600
COMM_SUCCESS = 0 # tx or rx packet communication success
def convert_to_bytes(value, bytes):
def convert_to_bytes(value, _byte):
# TODO(rcadene): remove need to mock `convert_to_bytes` by implemented the inverse transform
# `convert_bytes_to_value`
del bytes # unused
return value
@@ -74,7 +73,7 @@ class PacketHandler:
class GroupSyncRead:
def __init__(self, port_handler, packet_handler, address, bytes):
def __init__(self, _port_handler, packet_handler, _address, _byte):
self.packet_handler = packet_handler
def addParam(self, motor_index): # noqa: N802
@@ -85,12 +84,12 @@ class GroupSyncRead:
def txRxPacket(self): # noqa: N802
return COMM_SUCCESS
def getData(self, index, address, bytes): # noqa: N802
def getData(self, index, address, _byte): # noqa: N802
return self.packet_handler.data[index][address]
class GroupSyncWrite:
def __init__(self, port_handler, packet_handler, address, bytes):
def __init__(self, _port_handler, packet_handler, address, _byte):
self.packet_handler = packet_handler
self.address = address