Skip to content

Commit

Permalink
Restyled Python test
Browse files Browse the repository at this point in the history
  • Loading branch information
hasty committed Sep 19, 2024
1 parent 242d16e commit 0b61230
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/python_testing/TC_TSTAT_2_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async def test_TC_TSTAT_2_2(self):
occupiedCoolingSetpoint = await self.read_single_attribute_check_success(endpoint=endpoint, cluster=cluster, attribute=cluster.Attributes.OccupiedCoolingSetpoint)
occupiedHeatingSetpoint = await self.read_single_attribute_check_success(endpoint=endpoint, cluster=cluster, attribute=cluster.Attributes.OccupiedHeatingSetpoint)
deadband = await self.read_single_attribute_check_success(endpoint=endpoint, cluster=cluster, attribute=cluster.Attributes.MinSetpointDeadBand)
deadband *= 10 # Unlike all the setpoints it affects, deadband is in 0.1C increments, because reasons
deadband *= 10 # Unlike all the setpoints it affects, deadband is in 0.1C increments, because reasons
unoccupiedCoolingSetpoint = None
unoccupiedHeatingSetpoint = None

Expand Down Expand Up @@ -125,7 +125,6 @@ async def test_TC_TSTAT_2_2(self):
unoccupiedCoolingSetpoint = await self.read_single_attribute_check_success(endpoint=endpoint, cluster=cluster, attribute=cluster.Attributes.UnoccupiedCoolingSetpoint)
asserts.assert_equal(unoccupiedCoolingSetpoint, targetCoolingSetpoint, "UnoccupiedCoolingSetpoint was not adjusted")


self.step("7")
if self.pics_guard(self.check_pics("TSTAT.S.F02")) and unoccupiedHeatingSetpoint > minHeat:
targetCoolingSetpoint = (unoccupiedHeatingSetpoint + deadband) - 1
Expand All @@ -134,5 +133,6 @@ async def test_TC_TSTAT_2_2(self):
unoccupiedHeatingSetpoint = await self.read_single_attribute_check_success(endpoint=endpoint, cluster=cluster, attribute=cluster.Attributes.UnoccupiedHeatingSetpoint)
asserts.assert_equal(unoccupiedHeatingSetpoint, targetHeatingSetpoint, "UnoccupiedHeatingSetpoint was not adjusted")


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

0 comments on commit 0b61230

Please sign in to comment.