src/pyams_utils/tests/test_utilsdocs.py
branchdev-tf
changeset 427 63284c98cdc1
parent 367 2c95d34496f5
child 435 4504a27af426
equal deleted inserted replaced
426:2022e4da3ad9 427:63284c98cdc1
    27 
    27 
    28 
    28 
    29 CURRENT_DIR = os.path.abspath(os.path.dirname(__file__))
    29 CURRENT_DIR = os.path.abspath(os.path.dirname(__file__))
    30 
    30 
    31 
    31 
    32 def doc_suite(test_dir, setUp=None, tearDown=None, globs=None):
    32 def doc_suite(test_dir, setUp=None, tearDown=None, globs=None):  # pylint: disable=invalid-name
    33     """Returns a test suite, based on doctests found in /doctest."""
    33     """Returns a test suite, based on doctests found in /doctest."""
    34     suite = []
    34     suite = []
    35     if globs is None:
    35     if globs is None:
    36         globs = globals()
    36         globs = globals()
    37 
    37 
    59     return doc_suite(CURRENT_DIR)
    59     return doc_suite(CURRENT_DIR)
    60 
    60 
    61 
    61 
    62 if __name__ == '__main__':
    62 if __name__ == '__main__':
    63     unittest.main(defaultTest='test_suite')
    63     unittest.main(defaultTest='test_suite')
    64