Skip to content

Commit 7c1bd44

Browse files
restyled-commitsrbultman
authored andcommitted
Restyled by autopep8
1 parent 0132641 commit 7c1bd44

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

src/python_testing/TC_MWOCTRL_2_1.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ def steps_TC_MWOCTRL_2_1(self) -> list[TestStep]:
9797
TestStep(15, "Set the CookTime attribute to 60", "Verify DUT responds w/ INVALID_IN_STATE(0xCB)"),
9898

9999
TestStep(16, "Manually set DUT into a state where it will respond with INVALID_COMMAND", ""),
100-
TestStep(17, "Send the SetCookingParameters command with StartAfterSetting to True", "Verify DUT responds w/ INVALID_COMMAND(0x85)"),
100+
TestStep(17, "Send the SetCookingParameters command with StartAfterSetting to True",
101+
"Verify DUT responds w/ INVALID_COMMAND(0x85)"),
101102
]
102103
return steps
103104

@@ -165,8 +166,8 @@ async def test_TC_MWOCTRL_2_1(self):
165166
await self.set_bad_cook_time_value_expect_failure(endpoint, maxCookTime+1, Status.InvalidInState)
166167
else:
167168
self.skip_step(14)
168-
self.skip_step(15)
169-
169+
self.skip_step(15)
170+
170171
if self.check_pics("MWOCTRL.S.M.ManualSetInvalidCommand"):
171172
self.step(16)
172173
input("Press Enter when done.\n")
@@ -175,7 +176,8 @@ async def test_TC_MWOCTRL_2_1(self):
175176
await self.send_bad_command_expect_failure(endpoint)
176177
else:
177178
self.skip_step(16)
178-
self.skip_step(17)
179+
self.skip_step(17)
180+
179181

180182
if __name__ == "__main__":
181183
default_matter_test_main()

src/python_testing/TC_MWOCTRL_2_4.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ def steps_TC_MWOCTRL_2_4(self) -> list[TestStep]:
4343
TestStep(3, "Read the SelectedWattIndex attribute"),
4444
TestStep(4, "Send the SetCookingParameters command", "Verify DUT responds w/ status SUCCESS(0x00)."),
4545
TestStep(5, "Read and verify the SelectedWattIndex attribute"),
46-
TestStep(6, "Try to set SelectedWattIndex to an invalid value.", "Verify DUT responds w/ status CONSTRAINT_ERROR(0x87)"),
46+
TestStep(6, "Try to set SelectedWattIndex to an invalid value.",
47+
"Verify DUT responds w/ status CONSTRAINT_ERROR(0x87)"),
4748
]
4849
return steps
4950

src/python_testing/TC_MWOCTRL_2_5.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async def set_cook_time_expect_success(self, endpoint, value):
3939
except InteractionModelError as e:
4040
asserts.assert_equal(e.status, Status.Success, "Unexpected error returned")
4141

42-
async def send_add_more_time_command_expect_response(self, endpoint, value, expectedError = Status.Success):
42+
async def send_add_more_time_command_expect_response(self, endpoint, value, expectedError=Status.Success):
4343
commands = Clusters.Objects.MicrowaveOvenControl.Commands
4444
try:
4545
await self.send_single_cmd(cmd=commands.AddMoreTime(timeToAdd=value), endpoint=endpoint)
@@ -116,8 +116,8 @@ async def test_TC_MWOCTRL_2_5(self):
116116
await self.send_add_more_time_command_expect_response(endpoint, 30, Status.InvalidInState)
117117
else:
118118
self.skip_step(7)
119-
self.skip_step(8)
120-
119+
self.skip_step(8)
120+
121121

122122
if __name__ == "__main__":
123123
default_matter_test_main()

0 commit comments

Comments
 (0)