Skip to content

Commit 8b060d7

Browse files
restyled-commitsrbultman
authored andcommitted
Restyled by autopep8
1 parent da22449 commit 8b060d7

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

src/python_testing/TC_MWOCTRL_2_1.py

+10-7
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,20 @@ def steps_TC_MWOCTRL_2_1(self) -> list[TestStep]:
6060
steps = [
6161
TestStep(1, "Commissioning, already done", is_commissioning=True),
6262
TestStep(2, "Read the MaxCookTime attribute and check limits",
63-
"Verify that the DUT response contains an elapsed-s value between 1 and 86400 inclusive. Save value as MaxCookTime."
64-
),
63+
"Verify that the DUT response contains an elapsed-s value between 1 and 86400 inclusive. Save value as MaxCookTime."
64+
),
6565
TestStep(3, "Read the CookTime attribute and check limits",
66-
"Verify that the DUT response contains an elapsed-s value between 1 and MaxCookTime inclusive."
67-
),
66+
"Verify that the DUT response contains an elapsed-s value between 1 and MaxCookTime inclusive."
67+
),
6868
TestStep(4, "Set the CookTime attribute to 60", "Verify DUT responds w/ status SUCCESS(0x00)."),
69-
TestStep(5, "Read the CookTime attribute and check for 60", "Verify that the DUT response contains the CookTime value 60."),
69+
TestStep(5, "Read the CookTime attribute and check for 60",
70+
"Verify that the DUT response contains the CookTime value 60."),
7071
TestStep(6, "Set the CookTime attribute to 1", "Verify DUT responds w/ status SUCCESS(0x00)"),
71-
TestStep(7, "Read the CookTime attribute and check for 1", "Verify that the DUT response contains the CookTime value 1."),
72+
TestStep(7, "Read the CookTime attribute and check for 1",
73+
"Verify that the DUT response contains the CookTime value 1."),
7274
TestStep(8, "Set the CookTime attribute to MaxCookTime", "Verify DUT responds w/ status SUCCESS(0x00)"),
73-
TestStep(9, "Read the CookTime attribute and check for MaxCookTime", "Verify that the DUT response contains the CookTime value MaxCookTime."),
75+
TestStep(9, "Read the CookTime attribute and check for MaxCookTime",
76+
"Verify that the DUT response contains the CookTime value MaxCookTime."),
7477
TestStep(10, "Read the WattRating attribute, if supported", "Verify that the DUT response contains a uint16 value."),
7578
TestStep(11, "Set the CookTime attribute to 0", "Verify DUT responds w/ status CONSTRAINT_ERROR(0x87)"),
7679
TestStep(12, "Set the CookTime attribute to MaxCookTime+1", "Verify DUT responds w/ status CONSTRAINT_ERROR(0x87)"),

src/python_testing/TC_MWOCTRL_2_2.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ async def set_power_setting_expect_failure(self, endpoint, value):
4444
await self.send_single_cmd(cmd=Clusters.Objects.MicrowaveOvenControl.Commands.SetCookingParameters(powerSetting=value), endpoint=endpoint)
4545
asserts.assert_fail("Expected an exception but received none.")
4646
except InteractionModelError as e:
47-
asserts.assert_equal(e.status, Status.ConstraintError, "Expected ConstraintError but received a different response: %x", e.status)
47+
asserts.assert_equal(e.status, Status.ConstraintError,
48+
"Expected ConstraintError but received a different response: %x", e.status)
4849

4950
async def read_and_check_power_setting_value(self, endpoint, value):
5051
powerValue = await self.read_mwoctrl_attribute_expect_success(endpoint=endpoint, attribute=Clusters.MicrowaveOvenControl.Attributes.PowerSetting)

0 commit comments

Comments
 (0)