Skip to content

Commit 5758ed0

Browse files
committed
More linting fixes!
1 parent 47b5951 commit 5758ed0

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/python_testing/TC_IDM_2_2.py

+10-11
Original file line numberDiff line numberDiff line change
@@ -441,13 +441,11 @@ async def test_TC_IDM_2_2(self):
441441
# TH sends a second read request to the same cluster with the DataVersionFilter Field set with the dataversion value received before.
442442
self.print_step(
443443
23, "Send the Read Request Message to the DUT to read a particular attribute with the DataVersionFilter Field not set")
444-
read_request_23 = await self.default_controller.ReadAttribute(self.dut_node_id, server_list_attr_path)
445-
data_version = read_request_23[0][Clusters.Descriptor][Clusters.Attribute.DataVersion]
446-
# data_version = empty_dvf[0][Clusters.Descriptor][Clusters.Attribute.DataVersion]
447-
data_version_filter = [(0, Clusters.Descriptor, data_version)]
448-
449-
# data_version_filter = [(0, Clusters.Objects.Descriptor, data_version)]
450444
# Temporarily commented to avoid linter errors -- will revert once output value is known so that assertion can be used correctly
445+
# read_request_23 = await self.default_controller.ReadAttribute(self.dut_node_id, server_list_attr_path)
446+
# data_version = read_request_23[0][Clusters.Descriptor][Clusters.Attribute.DataVersion]
447+
# data_version_filter = [(0, Clusters.Descriptor, data_version)]
448+
451449
# read_request_23_2 = await self.default_controller.ReadAttribute(self.dut_node_id, server_list_attr_path, dataVersionFilters=data_version_filter)
452450
# Seems to return {}?
453451

@@ -461,9 +459,10 @@ async def test_TC_IDM_2_2(self):
461459

462460
self.print_step(
463461
24, "Send the Read Request Message to the DUT to read a particular attribute with the DataVersionFilter Field not set")
464-
read_request_24 = await self.default_controller.ReadAttribute(self.dut_node_id, [(0, Clusters.Objects.Descriptor.Attributes.FeatureMap)])
465-
await self.default_controller.WriteAttribute(self.dut_node_id, [(0, Clusters.Objects.Descriptor.Attributes.FeatureMap(value=123456))])
466462
# Temporarily commented to avoid linter errors -- will revert once output value is known so that assertion can be used correctly
463+
# read_request_24 = await self.default_controller.ReadAttribute(self.dut_node_id, [(0, Clusters.Objects.Descriptor.Attributes.FeatureMap)])
464+
await self.default_controller.WriteAttribute(self.dut_node_id, [(0, Clusters.Objects.Descriptor.Attributes.FeatureMap(value=123456))])
465+
467466
# data_version = read_request_24[0][Clusters.Descriptor][Clusters.Attribute.DataVersion]
468467
# data_version_filter = [(0, Clusters.Descriptor, data_version)]
469468
# read_request_24_1 = await self.default_controller.ReadAttribute(
@@ -501,10 +500,10 @@ async def test_TC_IDM_2_2(self):
501500
# DUT should send a report data action with the attribute value to the TH.
502501
self.print_step(
503502
26, "Send the Read Request Message to read a particular attribute on a particular cluster with the DataVersionFilter Field not set")
504-
read_request_26 = await self.default_controller.ReadAttribute(self.dut_node_id, [server_list_attr])
505-
await self.default_controller.WriteAttribute(self.dut_node_id, [(0, Clusters.Objects.Descriptor.Attributes.FeatureMap(value=999))])
506503
# Temporarily commented to avoid linter errors
507-
data_version = read_request_26[0][Clusters.Descriptor][Clusters.Attribute.DataVersion]
504+
# read_request_26 = await self.default_controller.ReadAttribute(self.dut_node_id, [server_list_attr])
505+
await self.default_controller.WriteAttribute(self.dut_node_id, [(0, Clusters.Objects.Descriptor.Attributes.FeatureMap(value=999))])
506+
# data_version = read_request_26[0][Clusters.Descriptor][Clusters.Attribute.DataVersion]
508507
# Temporarily commented to avoid linter errors -- will revert once output value is known so that assertion can be used correctly
509508
# data_version_filter = [(0, Clusters.Descriptor, data_version)]
510509
# read_request_26_2 = await self.default_controller.ReadAttribute(

0 commit comments

Comments
 (0)