Skip to content

Commit e2bf1fb

Browse files
committed
Fix test_init.py
1 parent 628ec4d commit e2bf1fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_init.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,8 +595,9 @@ def test_and_assert(test_dict, data, header):
595595
return
596596

597597
# Perform tests and asserts in two steps: devices and zones
598-
for data_dict in testdata:
599-
test_and_assert(data_dict, data, "devices")
598+
local_testdata = {"devices": testdata}
599+
for header, data_dict in local_testdata.items():
600+
test_and_assert(data_dict, data, header)
600601

601602
# pragma warning restore S3776
602603

0 commit comments

Comments
 (0)