From 3cc44e62d4c1d96375649c6240cb8c0245d4c9f5 Mon Sep 17 00:00:00 2001 From: Petru Lauric <81822411+plauric@users.noreply.github.com> Date: Fri, 9 Aug 2024 02:48:32 +0300 Subject: [PATCH] ServiceArea - fix TC 1.2 and 1.3 bugs (#34891) * initial commit * Restyled by autopep8 --------- Co-authored-by: Restyled.io --- src/python_testing/TC_SEAR_1_2.py | 4 ++-- src/python_testing/TC_SEAR_1_3.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/python_testing/TC_SEAR_1_2.py b/src/python_testing/TC_SEAR_1_2.py index 4ebb3342ee9bfc..a938ae6c31259f 100644 --- a/src/python_testing/TC_SEAR_1_2.py +++ b/src/python_testing/TC_SEAR_1_2.py @@ -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!") diff --git a/src/python_testing/TC_SEAR_1_3.py b/src/python_testing/TC_SEAR_1_3.py index 0acee1b34cdeb8..3e8d60fa6a24f8 100644 --- a/src/python_testing/TC_SEAR_1_3.py +++ b/src/python_testing/TC_SEAR_1_3.py @@ -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):