Skip to content

Commit 3714101

Browse files
restyled-commitsaustina-csa
authored andcommitted
Restyled by autopep8
1 parent dd5069a commit 3714101

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

src/python_testing/TC_RVCCLEANM_2_1.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ class CommonCodes(Enum):
138138
print("Changing mode to Cleaning")
139139
await self.send_run_change_to_mode_cmd(1)
140140
else:
141-
self.wait_for_user_input(prompt_msg="Manually put the device in a state from which it will FAIL to transition to mode %d, and press Enter when done" % (self.mode_fail))
141+
self.wait_for_user_input(
142+
prompt_msg="Manually put the device in a state from which it will FAIL to transition to mode %d, and press Enter when done" % (self.mode_fail))
142143

143144
self.print_step(6, "Read CurrentMode attribute")
144145
old_current_mode = await self.read_mod_attribute_expect_success(endpoint=self.endpoint, attribute=attributes.CurrentMode)
@@ -169,7 +170,8 @@ class CommonCodes(Enum):
169170
print("Changing mode to Idle")
170171
await self.send_run_change_to_mode_cmd(0)
171172
else:
172-
self.wait_for_user_input(prompt_msg="Manually put the device in a state from which it will SUCCESSFULLY transition to mode %d, and press Enter when done" % (self.mode_ok))
173+
self.wait_for_user_input(
174+
prompt_msg="Manually put the device in a state from which it will SUCCESSFULLY transition to mode %d, and press Enter when done" % (self.mode_ok))
173175

174176
self.print_step(10, "Read CurrentMode attribute")
175177
old_current_mode = await self.read_mod_attribute_expect_success(endpoint=self.endpoint, attribute=attributes.CurrentMode)

src/python_testing/TC_RVCCLEANM_2_2.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ async def test_TC_RVCCLEANM_2_2(self):
101101
if self.is_ci:
102102
await self.send_run_change_to_mode_cmd(1)
103103
else:
104-
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.")
104+
self.wait_for_user_input(
105+
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.")
105106

106107
self.print_step(3, "Read the RvcRunMode SupportedModes attribute")
107108
supported_run_modes = await self.read_run_supported_modes()

src/python_testing/TC_RVCRUNM_2_1.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ class CommonCodes(Enum):
133133
print("Change to RVC Run mode Cleaning")
134134
await self.send_change_to_mode_cmd(newMode=1)
135135
else:
136-
self.wait_for_user_input(prompt_msg="Manually put the device in a state from which it will FAIL to transition to mode %d, and press Enter when ready." % (self.mode_fail))
136+
self.wait_for_user_input(
137+
prompt_msg="Manually put the device in a state from which it will FAIL to transition to mode %d, and press Enter when ready." % (self.mode_fail))
137138

138139
self.print_step(6, "Read CurrentMode attribute")
139140
old_current_mode = await self.read_mod_attribute_expect_success(endpoint=self.endpoint, attribute=attributes.CurrentMode)
@@ -163,7 +164,8 @@ class CommonCodes(Enum):
163164
if self.is_ci:
164165
print("Continuing...")
165166
else:
166-
self.wait_for_user_input(prompt_msg="Manually put the device in a state from which it will SUCCESSFULLY transition to mode %d, and press Enter when ready." % (self.mode_ok))
167+
self.wait_for_user_input(
168+
prompt_msg="Manually put the device in a state from which it will SUCCESSFULLY transition to mode %d, and press Enter when ready." % (self.mode_ok))
167169

168170
self.print_step(10, "Read CurrentMode attribute")
169171
old_current_mode = await self.read_mod_attribute_expect_success(endpoint=self.endpoint, attribute=attributes.CurrentMode)

src/python_testing/TC_RVCRUNM_2_2.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ async def test_TC_RVCRUNM_2_2(self):
136136
if self.is_ci:
137137
self.write_to_app_pipe('{"Name": "Reset"}')
138138
test_step = ("Manually put the device in a RVC Run Mode cluster mode with "
139-
"the Idle(0x4000) mode tag and in a device state that allows changing to either "
140-
"of these modes: %i, %i" % (self.mode_a, self.mode_b))
139+
"the Idle(0x4000) mode tag and in a device state that allows changing to either "
140+
"of these modes: %i, %i" % (self.mode_a, self.mode_b))
141141
self.print_step(2, test_step)
142142
if not self.is_ci:
143143
self.wait_for_user_input(prompt_msg=f"{test_step}, and press Enter when ready.")
@@ -206,7 +206,8 @@ async def test_TC_RVCRUNM_2_2(self):
206206
if self.is_ci:
207207
self.write_to_app_pipe('{"Name": "ChargerFound"}')
208208
else:
209-
self.wait_for_user_input(prompt_msg="Manually put the device in one of Stopped(0x00), Paused(0x02), Charging(0x41) or Docked(0x42), and press Enter when ready.\n")
209+
self.wait_for_user_input(
210+
prompt_msg="Manually put the device in one of Stopped(0x00), Paused(0x02), Charging(0x41) or Docked(0x42), and press Enter when ready.\n")
210211

211212
self.print_step(10, "Read RVCOPSTATE's OperationalState attribute")
212213
op_state = await self.read_op_state_operational_state()

0 commit comments

Comments
 (0)