diff options
Diffstat (limited to 'libbe/plugin.py')
-rw-r--r-- | libbe/plugin.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libbe/plugin.py b/libbe/plugin.py index 9254986..05a4398 100644 --- a/libbe/plugin.py +++ b/libbe/plugin.py @@ -17,6 +17,8 @@ import os import os.path import sys +import doctest + def my_import(mod_name): module = __import__(mod_name) components = mod_name.split('.') @@ -56,6 +58,8 @@ plugin_path = os.path.realpath(os.path.dirname(os.path.dirname(__file__))) if plugin_path not in sys.path: sys.path.append(plugin_path) +suite = doctest.DocTestSuite() + def _test(): import doctest doctest.testmod() |