Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test_docs: dont require module docs (cimpl)
  • Loading branch information
edenhill committed May 9, 2016
commit f853b4625e381b1214bf79b5dbf5c9901837505c
7 changes: 4 additions & 3 deletions tests/test_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

import confluent_kafka
import re

from types import ModuleType

def test_verify_docs():
""" Make sure all exported functions, classes, etc, have proper docstrings
"""
fails = 0

for n in dir(confluent_kafka):
if n[0:2] == '__':
if n.startswith('__'):
# Skip internals
continue

Expand All @@ -21,7 +21,8 @@ def test_verify_docs():
fails += 1
elif not re.search(r':', d):
print('Missing Doxygen tag for: %s (type %s)' % (n, type(o)))
fails += 1
if not isinstance(o, ModuleType):
fails += 1

assert fails == 0

Expand Down