Commits

Mikhail Korobov committed 48d2147

Run existing doctests

Comments (0)

Files changed (2)

admin_tools/dashboard/modules.py

 
     def init_with_context(self, context):
         """
-        Like for the :class:`~admin_tools.dashboard.Dashboard` class, dashboard modules have a
-        ``init_with_context`` method that is called with a
+        Like for the :class:`~admin_tools.dashboard.Dashboard` class, dashboard
+        modules have a ``init_with_context`` method that is called with a
         ``django.template.RequestContext`` instance as unique argument.
 
         This gives you enough flexibility to build complex modules, for

admin_tools/dashboard/tests.py

 from django.contrib.auth.models import User, Group
 
 from admin_tools.dashboard import AppIndexDashboard
+from admin_tools.dashboard.modules import DashboardModule
 
 class ManagementCommandTest(TestCase):
     def test_customdashboard(self):
                   'django.contrib.auth.models.Group']
         board = AppIndexDashboard('Auth', models)
         self.assertEqual(board.get_app_model_classes(), [User, Group])
+
+__test__ = {
+    'DashboardModule.is_empty': DashboardModule.is_empty,
+    'DashboardModule.render_css_classes': DashboardModule.render_css_classes
+}