Skip to content

Commit

Permalink
Fix doc coverage test for "added in XXX" check
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk authored and nyalldawson committed Aug 30, 2016
1 parent a4ffbf3 commit b0c67cd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/src/python/utilities.py
Expand Up @@ -530,12 +530,15 @@ def parseClassElem(self, e):
# test for "added in QGIS xxx" string
d = e.find('detaileddescription')
found_version_added = False
if d.find('para'):
for s in d.find('para').getiterator('simplesect'):
for para in d.getiterator('para'):
for s in para.getiterator('simplesect'):
if s.get('kind') == 'note':
for p in s.getiterator('para'):
if p.text and p.text.lower().startswith('added in'):
found_version_added = True
break
if found_version_added:
break

return documentable_members, documented_members, undocumented_members, bindable_members, found_version_added

Expand Down

0 comments on commit b0c67cd

Please sign in to comment.