Browse Source

test mqtt: disable irrelevant too-many-arguments check

https://github.com/fphammerle/switchbot-mqtt/runs/657641134
Fabian Peter Hammerle 4 năm trước cách đây
mục cha
commit
087dc684f9
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      tests/test_mqtt.py

+ 1 - 0
tests/test_mqtt.py

@@ -178,6 +178,7 @@ def test__report_state(
     expected_payload: bytes,
     return_code: int,
 ):
+    # pylint: disable=too-many-arguments
     mqtt_client_mock = unittest.mock.MagicMock()
     mqtt_client_mock.publish.return_value.rc = return_code
     with caplog.at_level(logging.WARNING):