Skip to content

Commit

Permalink
removed unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
sumaky committed Aug 26, 2024
1 parent 489ea54 commit 971daa9
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/python_testing/TC_DRLK_2_5.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ async def clear_user_cmd(self, user_index, expected_status: Status = Status.Succ

async def clear_week_day_schedule_cmd(self, week_day_index, user_index, expected_status):
try:
response = await self.send_single_cmd(cmd=Clusters.DoorLock.Commands.ClearWeekDaySchedule(weekDayIndex=week_day_index, userIndex=user_index),
endpoint=self.app_cluster_endpoint,
timedRequestTimeoutMs=1000)
await self.send_single_cmd(cmd=Clusters.DoorLock.Commands.ClearWeekDaySchedule(weekDayIndex=week_day_index, userIndex=user_index),
endpoint=self.app_cluster_endpoint,
timedRequestTimeoutMs=1000)
except InteractionModelError as e:
asserts.assert_equal(e.status, expected_status, f"Unexpected error returned: {e}")

Expand Down Expand Up @@ -147,7 +147,7 @@ async def get_weekday_schedule_cmd(self, week_day_index, user_index, days_Mask,
async def set_week_days_schedule_cmd(self, week_day_index, user_index, day_mask_map_index, start_Hour, start_Minute, end_Hour, end_Minute, expected_status):
try:

response = await self.send_single_cmd(cmd=Clusters.DoorLock.Commands.SetWeekDaySchedule(
await self.send_single_cmd(cmd=Clusters.DoorLock.Commands.SetWeekDaySchedule(
weekDayIndex=week_day_index,
userIndex=user_index,
daysMask=day_mask_map_index,
Expand Down Expand Up @@ -242,7 +242,7 @@ async def test_TC_DRLK_2_5(self):

self.step("3")
if self.pics_guard(self.check_pics("DRLK.S.F04") and self.check_pics("DRLK.S.C0c.Rsp") and self.check_pics("DRLK.S.C0c.Tx")):
days_Mask = 127
day_mask_map_index = 127
await self.get_weekday_schedule_cmd(
week_day_index,
user_index,
Expand All @@ -255,7 +255,7 @@ async def test_TC_DRLK_2_5(self):
self.step("4")
if self.pics_guard(self.check_pics("DRLK.S.F04") and self.check_pics("DRLK.S.C0b.Rsp")):
week_day_index = 0
days_Mask = 2
day_mask_map_index = 2
await self.set_week_days_schedule_cmd(
week_day_index,
user_index,
Expand All @@ -268,7 +268,7 @@ async def test_TC_DRLK_2_5(self):
self.step("5")
if self.pics_guard(self.check_pics("DRLK.S.F04") and self.check_pics("DRLK.S.C0b.Rsp")):
week_day_index = 0 # invalid value
days_Mask = 2 # valid value
day_mask_map_index = 2 # valid value
await self.set_week_days_schedule_cmd(
week_day_index,
user_index,
Expand All @@ -281,7 +281,7 @@ async def test_TC_DRLK_2_5(self):
self.step("6")
if self.pics_guard(self.check_pics("DRLK.S.F04") and self.check_pics("DRLK.S.C0b.Rsp")):
week_day_index = 1 # valid value
days_Mask = 0 # invalid value
day_mask_map_index = 0 # invalid value
await self.set_week_days_schedule_cmd(
week_day_index,
user_index,
Expand All @@ -295,7 +295,7 @@ async def test_TC_DRLK_2_5(self):
self.step("7")
if self.pics_guard(self.check_pics("DRLK.S.F04") and self.check_pics("DRLK.S.C0b.Rsp")):
week_day_index = 1 # valid value
days_Mask = 1 # valid value
day_mask_map_index = 1 # valid value
start_Hour = 18 # inavlid value > end hour
await self.set_week_days_schedule_cmd(
week_day_index,
Expand All @@ -310,6 +310,7 @@ async def test_TC_DRLK_2_5(self):
self.step("8")
if self.pics_guard(self.check_pics("DRLK.S.F04") and self.check_pics("DRLK.S.C0c.Rsp") and self.check_pics("DRLK.S.C0c.Tx")):
week_day_index = 0
user_index = 1
await self.get_weekday_schedule_cmd(
week_day_index,
user_index,
Expand All @@ -321,6 +322,7 @@ async def test_TC_DRLK_2_5(self):
Status.InvalidCommand)
self.step("9")
if self.pics_guard(self.check_pics("DRLK.S.F04") and self.check_pics("DRLK.S.C0c.Rsp") and self.check_pics("DRLK.S.C0c.Tx")):
week_day_index = 1
user_index = 2 # invalid value as it does not exist
await self.get_weekday_schedule_cmd(
week_day_index,
Expand Down

0 comments on commit 971daa9

Please sign in to comment.