Files
mayan-edms/mayan/apps/documents/tests/test_statistics.py
Roberto Rosario 4baeb6ce7e Code cleanups
PEP8 cleanups. Add keyword arguments.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2019-05-21 00:56:22 -04:00

18 lines
492 B
Python

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