Skip to content

Commit f853b46

Browse files
committed
test_docs: dont require module docs (cimpl)
1 parent ee588bf commit f853b46

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_docs.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
import confluent_kafka
44
import re
5-
5+
from types import ModuleType
66

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

1212
for n in dir(confluent_kafka):
13-
if n[0:2] == '__':
13+
if n.startswith('__'):
1414
# Skip internals
1515
continue
1616

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

2627
assert fails == 0
2728

0 commit comments

Comments
 (0)