Skip to content

Commit

Permalink
Updated TC_OpstateCommon.py:
Browse files Browse the repository at this point in the history
- Removed some variables that were no longer needed
  • Loading branch information
j-ororke committed Jul 10, 2024
1 parent d10612e commit 832661a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/python_testing/TC_OpstateCommon.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,19 +219,15 @@ async def TEST_TC_OPSTATE_BASE_1_1(self, endpoint=1, cluster_revision=1, feature
OPSTATE_attr_list = attributes.AttributeList
attribute_list = await self.read_single_attribute_check_success(endpoint=endpoint, cluster=cluster, attribute=OPSTATE_attr_list)
countdown_time_attr_id = attributes.CountdownTime.attribute_id
oprtnlstate_attr_id = attributes.OperationalState.attribute_id

# Gathering Available Commands and associated ids
commands = cluster.Commands
OPSTATE_accptcmd_list = attributes.AcceptedCommandList
OPSTATE_gencmd_list = attributes.GeneratedCommandList
accepted_cmd_list = await self.read_single_attribute_check_success(endpoint=endpoint, cluster=cluster, attribute=OPSTATE_accptcmd_list)
generated_cmd_list = await self.read_single_attribute_check_success(endpoint=endpoint, cluster=cluster, attribute=OPSTATE_gencmd_list)
pause_cmd_id = commands.Pause.command_id
start_cmd_id = commands.Start.command_id
stop_cmd_id = commands.Stop.command_id
resume_cmd_id = commands.Resume.command_id
ocr_cmd_id = commands.OperationalCommandResponse.command_id

# Gathers Event id for OperationCompletion event, if available then returns true
events = cluster.Events
Expand Down Expand Up @@ -616,10 +612,8 @@ async def TEST_TC_OPSTATE_BASE_2_2(self, endpoint=1):
OPSTATE_gencmd_list = attributes.GeneratedCommandList
accepted_cmd_list = await self.read_single_attribute_check_success(endpoint=endpoint, cluster=cluster, attribute=OPSTATE_accptcmd_list)
generated_cmd_list = await self.read_single_attribute_check_success(endpoint=endpoint, cluster=cluster, attribute=OPSTATE_gencmd_list)
pause_cmd_id = commands.Pause.command_id # 0
start_cmd_id = commands.Start.command_id # 2
stop_cmd_id = commands.Stop.command_id # 1
resume_cmd_id = commands.Resume.command_id # 3
ocr_cmd_id = commands.OperationalCommandResponse.command_id # 4

self.init_test()
Expand Down Expand Up @@ -810,7 +804,6 @@ async def TEST_TC_OPSTATE_BASE_2_3(self, endpoint=1):
OPSTATE_attr_list = attributes.AttributeList
attribute_list = await self.read_single_attribute_check_success(endpoint=endpoint, cluster=cluster, attribute=OPSTATE_attr_list)
countdown_time_attr_id = attributes.CountdownTime.attribute_id
oprtnlstate_list_attr_id = attributes.OperationalStateList.attribute_id
oprtnlstate_attr_id = attributes.OperationalState.attribute_id

# Gathering Available Commands and associated ids
Expand Down

0 comments on commit 832661a

Please sign in to comment.