Skip to content

Commit

Permalink
Modifying the pics_ function to better vibe with Cecille's plan
Browse files Browse the repository at this point in the history
  • Loading branch information
mhazley committed Jan 19, 2024
1 parent 9b05625 commit dbdb6f9
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
6 changes: 5 additions & 1 deletion src/python_testing/TC_FAN_3_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@ async def write_speed_setting(self, endpoint, speed_setting) -> Status:
return result[0].Status

def pics_TC_FAN_3_2(self) -> list[str]:
return ["FAN.S", "FAN.S.F00"]
return ["FAN.S"]

@async_test_body
async def test_TC_FAN_3_2(self):
if not self.check_pics("FAN.S.F00"):
logger.info("Test skipped because PICS FAN.S.F00 is not set")
return

endpoint = self.user_params.get("endpoint", 1)

self.print_step(1, "Commissioning, already done")
Expand Down
6 changes: 5 additions & 1 deletion src/python_testing/TC_FAN_3_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,14 @@ async def write_rock_setting(self, endpoint, rock_setting):
asserts.assert_equal(result[0].Status, Status.Success, "RockSetting write failed")

def pics_TC_FAN_3_3(self) -> list[str]:
return ["FAN.S", "FAN.S.F02"]
return ["FAN.S"]

@async_test_body
async def test_TC_FAN_3_3(self):
if not self.check_pics("FAN.S.F02"):
logger.info("Test skipped because PICS FAN.S.F02 is not set")
return

endpoint = self.user_params.get("endpoint", 1)

self.print_step(1, "Commissioning, already done")
Expand Down
6 changes: 5 additions & 1 deletion src/python_testing/TC_FAN_3_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,14 @@ async def write_wind_setting(self, endpoint, wind_setting):
asserts.assert_equal(result[0].Status, Status.Success, "WindSetting write failed")

def pics_TC_FAN_3_4(self) -> list[str]:
return ["FAN.S", "FAN.S.F03"]
return ["FAN.S"]

@async_test_body
async def test_TC_FAN_3_4(self):
if not self.check_pics("FAN.S.F03"):
logger.info("Test skipped because PICS FAN.S.F03 is not set")
return

endpoint = self.user_params.get("endpoint", 1)

self.print_step(1, "Commissioning, already done")
Expand Down
6 changes: 5 additions & 1 deletion src/python_testing/TC_FAN_3_5.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,14 @@ async def send_step_command(self, endpoint,
pass

def pics_TC_FAN_3_5(self) -> list[str]:
return ["FAN.S", "FAN.S.F04"]
return ["FAN.S"]

@async_test_body
async def test_TC_FAN_3_5(self):
if not self.check_pics("FAN.S.F04"):
logger.info("Test skipped because PICS FAN.S.F04 is not set")
return

endpoint = self.user_params.get("endpoint", 1)

# Part 1
Expand Down

0 comments on commit dbdb6f9

Please sign in to comment.