diff options
| author | sebpiq | 2011-03-11 12:00:51 +0200 |
|---|---|---|
| committer | sebpiq | 2011-03-11 12:00:51 +0200 |
| commit | 94199a484783d91317c8decb273ab60447ffdfd7 (patch) | |
| tree | ec53e8664e1861f410c230f06c8162b2b414042f | |
| parent | b117f7bd4503e74160c42b4ac1de3f8ea1132731 (diff) | |
| download | django-rest-framework-94199a484783d91317c8decb273ab60447ffdfd7.tar.bz2 | |
modified tests.__init__ so it also test module docstrings
| -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..55e386b5 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__['%s' % module] = module_doc or "" + |
