Skip to content

Commit

Permalink
ServiceArea - fix TC 1.2 and 1.3 bugs (#34891)
Browse files Browse the repository at this point in the history
* initial commit

* Restyled by autopep8

---------

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Aug 21, 2024
1 parent d5e8f09 commit 5178883
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python_testing/TC_SEAR_1_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ async def read_and_validate_supported_areas(self, step):
if len(self.mapid_list) > 0:
asserts.assert_is_not(a.mapID, NullValue,
f"SupportedAreas entry with AreaID({a.areaID}) should not have null MapID")
asserts.assert_is(a.mapID in self.mapid_list,
f"SupportedAreas entry with AreaID({a.areaID}) has unknown MapID({a.mapID})")
asserts.assert_true(a.mapID in self.mapid_list,
f"SupportedAreas entry with AreaID({a.areaID}) has unknown MapID({a.mapID})")
k = f"mapID:{a.mapID} areaDesc:{a.areaDesc}"
asserts.assert_true(k not in areadesc_s,
f"SupportedAreas must have unique MapID({a.mapID}) + AreaDesc({a.areaDesc}) values!")
Expand Down
2 changes: 2 additions & 0 deletions src/python_testing/TC_SEAR_1_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ async def read_supported_areas(self, step):
endpoint=self.endpoint, attribute=Clusters.ServiceArea.Attributes.SupportedAreas)
logging.info("SupportedAreas: %s" % (supported_areas))

self.supported_areas = supported_areas

return [a.areaID for a in supported_areas]

async def read_selected_areas(self, step):
Expand Down

0 comments on commit 5178883

Please sign in to comment.