diff --git a/mayan/apps/documents/tests/test_statistics.py b/mayan/apps/documents/tests/test_statistics.py new file mode 100644 index 0000000000..dea2499776 --- /dev/null +++ b/mayan/apps/documents/tests/test_statistics.py @@ -0,0 +1,18 @@ +from __future__ import unicode_literals + +from mayan.apps.common.tests import BaseTestCase + +from ..statistics import namespace + + +class DocumentStatisticsTestCase(BaseTestCase): + def test_namespace(self): + for statistic in namespace.statistics: + try: + statistic.execute() + except Exception as exception: + self.fail( + 'Error executing: {}; {}'.format(statistic, exception) + ) + raise +