Skip to content

Commit 437e5b0

Browse files
committed
Added pylint disables
1 parent ff1b262 commit 437e5b0

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tests/test_adafruit_radio.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ def test_radio_configure_channel(radio_obj):
5656
assert radio_obj._channel == 7 # pylint: disable=protected-access
5757

5858

59-
def test_radio_configure_channel_out_of_bounds(radio_obj):
59+
def test_radio_configure_channel_out_of_bounds(
60+
radio_obj,
61+
): # pylint: disable=invalid-name
6062
"""
6163
If a channel not in the range 0-255 is passed into the configure method,
6264
then a ValueError exception is raised.
@@ -135,7 +137,7 @@ def test_radio_receive(radio_obj):
135137
assert radio_obj.receive() == "testing 1, 2, 3"
136138

137139

138-
def test_radio_receive_full_no_messages(radio_obj):
140+
def test_radio_receive_full_no_messages(radio_obj): # pylint: disable=invalid-name
139141
"""
140142
If no messages are detected by receive_full then it returns None.
141143
"""
@@ -150,7 +152,9 @@ def test_radio_receive_full_no_messages(radio_obj):
150152
radio_obj.ble.stop_scan.assert_called_once_with()
151153

152154

153-
def test_radio_receive_full_duplicate_message(radio_obj):
155+
def test_radio_receive_full_duplicate_message(
156+
radio_obj,
157+
): # pylint: disable=invalid-name
154158
"""
155159
If a duplicate message is detected, then receive_full returns None
156160
(indicating no *new* messages received).
@@ -164,7 +168,9 @@ def test_radio_receive_full_duplicate_message(radio_obj):
164168
assert radio_obj.receive_full() is None
165169

166170

167-
def test_radio_receive_full_and_remove_expired_message_metadata(radio_obj):
171+
def test_radio_receive_full_and_remove_expired_message_metadata(
172+
radio_obj,
173+
): # pylint: disable=invalid-name
168174
"""
169175
Return the non-duplicate message.
170176

0 commit comments

Comments
 (0)