Skip to content
Permalink
Browse files

Fix doc coverage test for "added in XXX" check

  • Loading branch information
wonder-sk authored and nyalldawson committed Aug 30, 2016
1 parent a4ffbf3 commit b0c67cd125877eedcb63b5a3487cc88de315f687
Showing with 5 additions and 2 deletions.
  1. +5 −2 tests/src/python/utilities.py
@@ -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

0 comments on commit b0c67cd

Please sign in to comment.
You can’t perform that action at this time.