Skip to content

Commit

Permalink
Fix missing assertion (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorJohn authored Sep 13, 2024
1 parent fec1eb5 commit d5934b6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/plugins/test_featureide_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,13 @@ def test_parse_feature_can_parse_with_mandatory_is_none():
def test_traverse_xml():
cfm = CFM([], [], [])
tree = ET.parse("tests/data/sandwich.xml")
root_struct = tree.getroot().find("struct")[0]

struct = tree.getroot().find("struct")
assert struct is not None

root_struct = struct[0]
root_feature = parse_feature(root_struct)

cfm.add_feature(root_feature)
feature_list = traverse_xml(root_struct, cfm)

Expand Down

0 comments on commit d5934b6

Please sign in to comment.