Browse Source

tests: ignore pylint's irrelevant duplicate-code warnings

Fabian Peter Hammerle 1 year ago
parent
commit
76a8257292
2 changed files with 2 additions and 2 deletions
  1. 1 1
      tests/test_cli_export_config.py
  2. 1 1
      tests/test_cli_transmit.py

+ 1 - 1
tests/test_cli_export_config.py

@@ -49,7 +49,7 @@ def test_configure_device(args, packet_length_mode, checksum_disabled):
             packet_length_mode
         )
     transceiver_mock.set_packet_length_bytes.assert_not_called()
-    if checksum_disabled:
+    if checksum_disabled:  # pylint: disable=duplicate-code
         transceiver_mock.disable_checksum.assert_called_once_with()
     else:
         transceiver_mock.disable_checksum.assert_not_called()

+ 1 - 1
tests/test_cli_transmit.py

@@ -127,7 +127,7 @@ def test_configure_device(
         transceiver_mock.set_sync_mode.assert_not_called()
     else:
         transceiver_mock.set_sync_mode.assert_called_once_with(sync_mode)
-    if packet_length_mode is None:
+    if packet_length_mode is None:  # pylint: disable=duplicate-code
         transceiver_mock.set_packet_length_mode.assert_not_called()
     else:
         transceiver_mock.set_packet_length_mode.assert_called_once_with(