Function to add all available doctests of the module with given name (e.g. “obspy.core”) to the given unittest TestSuite. All submodules in the module’s root directory are added. Occurring errors are shown as warnings.
Parameters: |
|
---|
Example
>>> import unittest
>>> suite = unittest.TestSuite()
>>> add_doctests(suite, "obspy.core")