diff options
Diffstat (limited to 'djangorestframework/tests/__init__.py')
| -rw-r--r-- | djangorestframework/tests/__init__.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/djangorestframework/tests/__init__.py b/djangorestframework/tests/__init__.py index 7ac54419..5d5b652a 100644 --- a/djangorestframework/tests/__init__.py +++ b/djangorestframework/tests/__init__.py @@ -5,5 +5,10 @@ modules = [filename.rsplit('.', 1)[0] for filename in os.listdir(os.path.dirname(__file__)) if filename.endswith('.py') and not filename.startswith('_')] +__test__ = dict() + for module in modules: - exec("from djangorestframework.tests.%s import *" % module)
\ No newline at end of file + exec("from djangorestframework.tests.%s import __doc__ as module_doc" % module) + exec("from djangorestframework.tests.%s import *" % module) + __test__[module] = module_doc or "" + |
