[style] bump yapf version to 0.31.0 (#6434)

This commit is contained in:
Simon Lin
2021-04-12 07:30:27 -07:00
committed by GitHub
parent 850468a68a
commit d5855ab74b
8 changed files with 36 additions and 38 deletions
+19 -19
View File
@@ -388,15 +388,15 @@ def check_prefix(prefix):
def check_child_update_request_from_child(
command_msg,
source_address=CheckType.OPTIONAL,
leader_data=CheckType.OPTIONAL,
challenge=CheckType.OPTIONAL,
time_out=CheckType.OPTIONAL,
address_registration=CheckType.OPTIONAL,
tlv_request_tlv=CheckType.OPTIONAL,
active_timestamp=CheckType.OPTIONAL,
CIDs=(),
command_msg,
source_address=CheckType.OPTIONAL,
leader_data=CheckType.OPTIONAL,
challenge=CheckType.OPTIONAL,
time_out=CheckType.OPTIONAL,
address_registration=CheckType.OPTIONAL,
tlv_request_tlv=CheckType.OPTIONAL,
active_timestamp=CheckType.OPTIONAL,
CIDs=(),
):
command_msg.assertMleMessageContainsTlv(mle.Mode)
@@ -485,16 +485,16 @@ def check_child_update_request_from_parent(
def check_child_update_response(
command_msg,
timeout=CheckType.OPTIONAL,
address_registration=CheckType.OPTIONAL,
address16=CheckType.OPTIONAL,
leader_data=CheckType.OPTIONAL,
network_data=CheckType.OPTIONAL,
response=CheckType.OPTIONAL,
link_layer_frame_counter=CheckType.OPTIONAL,
mle_frame_counter=CheckType.OPTIONAL,
CIDs=(),
command_msg,
timeout=CheckType.OPTIONAL,
address_registration=CheckType.OPTIONAL,
address16=CheckType.OPTIONAL,
leader_data=CheckType.OPTIONAL,
network_data=CheckType.OPTIONAL,
response=CheckType.OPTIONAL,
link_layer_frame_counter=CheckType.OPTIONAL,
mle_frame_counter=CheckType.OPTIONAL,
CIDs=(),
):
"""Verify a properly formatted Child Update Response from parent
"""
+3 -3
View File
@@ -108,7 +108,7 @@ def any_uri_path():
class TestCoapMessageOptionHeader(unittest.TestCase):
def test_should_return_passed_on_value_when_read_extended_value_is_called_with_value_different_than_13_and_14(
self):
self):
# GIVEN
value = any_4bits_value_different_than_13_and_14()
@@ -119,7 +119,7 @@ class TestCoapMessageOptionHeader(unittest.TestCase):
self.assertEqual(value, actual_value)
def test_should_return_value_stored_in_first_byte_plus_13_when_read_extended_value_is_called_with_value_equal_13(
self):
self):
# GIVEN
value = 13
extended_value = any_value()
@@ -133,7 +133,7 @@ class TestCoapMessageOptionHeader(unittest.TestCase):
self.assertEqual(extended_value + 13, actual_value)
def test_should_return_value_stored_in_first_byte_plus_269_when_read_extended_value_is_called_with_value_equal_14(
self):
self):
# GIVEN
value = 14
extended_value = any_value()