You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
356 B
Python
19 lines
356 B
Python
8 years ago
|
'''
|
||
|
Created on 15. des. 2016
|
||
|
|
||
|
@author: pab
|
||
|
'''
|
||
|
import inspect
|
||
|
|
||
|
|
||
|
def test_docstrings(name=''):
|
||
|
import doctest
|
||
|
if not name:
|
||
|
name = inspect.stack()[1][1]
|
||
|
print('Testing docstrings in {}'.format(name))
|
||
|
doctest.testmod(optionflags=doctest.NORMALIZE_WHITESPACE |
|
||
|
doctest.ELLIPSIS)
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
pass
|