Skip to content

Commit b0c67cd

Browse files
wonder-sknyalldawson
authored andcommittedAug 30, 2016
Fix doc coverage test for "added in XXX" check
1 parent a4ffbf3 commit b0c67cd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎tests/src/python/utilities.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,12 +530,15 @@ def parseClassElem(self, e):
530530
# test for "added in QGIS xxx" string
531531
d = e.find('detaileddescription')
532532
found_version_added = False
533-
if d.find('para'):
534-
for s in d.find('para').getiterator('simplesect'):
533+
for para in d.getiterator('para'):
534+
for s in para.getiterator('simplesect'):
535535
if s.get('kind') == 'note':
536536
for p in s.getiterator('para'):
537537
if p.text and p.text.lower().startswith('added in'):
538538
found_version_added = True
539+
break
540+
if found_version_added:
541+
break
539542

540543
return documentable_members, documented_members, undocumented_members, bindable_members, found_version_added
541544

0 commit comments

Comments
 (0)
Please sign in to comment.