Skip to content

Commit

Permalink
Try to fix handling of undocumented members on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 23, 2018
1 parent 14cf46c commit 91a792b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/code_layout/doxygen_parser.py
Expand Up @@ -266,7 +266,7 @@ def memberSignature(self, elem):
signature = elem.find('name').text
if signature.endswith('= default'):
signature = signature[:-len('= default')]
return signature
return signature.strip()
except:
return None

Expand Down
2 changes: 1 addition & 1 deletion tests/code_layout/test_qgsdoccoverage.py
Expand Up @@ -58,7 +58,7 @@ def testCoverage(self):
for cls, props in list(parser.undocumented_members.items()):
print(('\n\nClass {}, {}/{} members documented\n'.format(colored(cls, 'yellow'), props['documented'], props['members'])))
for mem in props['missing_members']:
print((colored(' ' + mem, 'yellow', attrs=['bold'])))
print((colored(' "' + mem + '"', 'yellow', attrs=['bold'])))

# self.assertEquals(len(parser.undocumented_string), 0, 'FAIL: new undocumented members have been introduced, please add documentation for these members')

Expand Down

0 comments on commit 91a792b

Please sign in to comment.