Skip to content

Commit

Permalink
Restyled by autopep8
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and j-ororke committed Jul 3, 2024
1 parent 5048552 commit fd9f558
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
1 change: 1 addition & 0 deletions src/python_testing/TC_RVCCLEANM_1_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,6 @@ async def test_TC_RVCCLEANM_1_2(self):
logging.info("CurrentMode: %s" % (current_mode))
asserts.assert_true(current_mode in self.supported_modes_dut, "CurrentMode is not a supported mode!")


if __name__ == "__main__":
default_matter_test_main()
4 changes: 2 additions & 2 deletions src/python_testing/TC_RVCCLEANM_2_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async def test_TC_RVCCLEANM_2_1(self):
self.mode_fail = self.matter_test_config.global_test_params['PIXIT.RVCCLEANM.MODE_CHANGE_FAIL']
app_pid = self.matter_test_config.app_pid
if app_pid != 0:
self.is_ci = True
self.is_ci = True
self.app_pipe = self.app_pipe + str(app_pid)

RVCClean_cluster = Clusters.RvcCleanMode
Expand All @@ -109,7 +109,7 @@ async def test_TC_RVCCLEANM_2_1(self):

if supported_modes_attr_id not in attribute_list:
asserts.fail("supported modes needs to be supported attribute")

if current_mode_attr_id not in attribute_list:
asserts.fail("Current mode needs to be supported attribute")

Expand Down
8 changes: 4 additions & 4 deletions src/python_testing/TC_RVCCLEANM_2_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async def test_TC_RVCCLEANM_2_2(self):
self.endpoint = self.matter_test_config.endpoint
app_pid = self.matter_test_config.app_pid
if app_pid != 0:
self.is_ci = True
self.is_ci = True
self.app_pipe = self.app_pipe + str(app_pid)

# replaces the RVCRUNM attributes from PICS file
Expand All @@ -101,7 +101,7 @@ async def test_TC_RVCCLEANM_2_2(self):

if supported_modes_attr_id not in attribute_list:
asserts.fail("Supported modes needs to be supported attribute")

if current_mode_attr_id not in attribute_list:
asserts.fail("Current mode needs to be supported attribute")

Expand All @@ -113,10 +113,10 @@ async def test_TC_RVCCLEANM_2_2(self):

self.print_step(
2, "Manually put the device in a state in which the RVC Run Mode cluster’s CurrentMode attribute is set to a mode without the Idle mode tag.")

if self.is_ci:
await self.send_run_change_to_mode_cmd(1)

else:
self.wait_for_user_input(
prompt_msg="Manually put the device in a state in which the RVC Run Mode cluster’s CurrentMode attribute is set to a mode without the Idle mode tag, and press Enter when done.")
Expand Down
2 changes: 1 addition & 1 deletion src/python_testing/TC_RVCRUNM_2_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async def test_TC_RVCRUNM_2_1(self):

if supported_modes_attr_id not in attribute_list:
asserts.fail("supported modes needs to be supported attribute")

if current_mode_attr_id not in attribute_list:
asserts.fail("Current mode needs to be supported attribute")

Expand Down
13 changes: 6 additions & 7 deletions src/python_testing/TC_RVCRUNM_2_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,16 @@ async def test_TC_RVCRUNM_2_2(self):
self.endpoint = self.matter_test_config.endpoint
self.mode_a = self.matter_test_config.global_test_params['PIXIT.RVCRUNM.MODE_A']
self.mode_b = self.matter_test_config.global_test_params['PIXIT.RVCRUNM.MODE_B']
app_pid = self.matter_test_config.app_pid
app_pid = self.matter_test_config.app_pid
if app_pid != 0:
self.is_ci = True
self.is_ci = True
self.app_pipe = self.app_pipe + str(app_pid)


app_pid = self.matter_test_config.app_pid
if app_pid != 0:
self.is_ci = True
self.is_ci = True
self.app_pipe = self.app_pipe + str(app_pid)

RVCRun_cluster = Clusters.RvcRunMode

# Gathering Available Attributes and associated ids
Expand All @@ -150,15 +149,15 @@ async def test_TC_RVCRUNM_2_2(self):

if supported_modes_attr_id not in attribute_list:
asserts.fail("Supported modes needs to be supported attribute")

if current_mode_attr_id not in attribute_list:
asserts.fail("Current mode needs to be supported attribute")

if chg_mode_cmd_id not in accepted_cmd_list:
asserts.fail("Change To Mode receiving commands needs to be supported")

asserts.assert_true(self.check_pics("RVCRUNM.S.M.CAN_MANUALLY_CONTROLLED"),
"RVCRUNM.S.M.CAN_MANUALLY_CONTROLLED must be supported")
"RVCRUNM.S.M.CAN_MANUALLY_CONTROLLED must be supported")

# Starting the test steps
self.print_step(1, "Commissioning, already done")
Expand Down

0 comments on commit fd9f558

Please sign in to comment.