| Total Complexity | 1 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | #!/usr/bin/env python3 |
||
| 2 | # -*- coding: utf-8 -*- |
||
| 3 | """ |
||
| 4 | Created on Tue Jul 9 11:51:09 2019 |
||
| 5 | |||
| 6 | @author: Paolo Cozzi <[email protected]> |
||
| 7 | """ |
||
| 8 | |||
| 9 | |||
| 10 | from django.test import TestCase |
||
| 11 | |||
| 12 | from common.tests import WebSocketMixin |
||
| 13 | from submissions.tests import ImportGenericTaskMixinTestCase |
||
| 14 | |||
| 15 | from .common import BaseExcelMixin |
||
| 16 | from ..tasks import ImportTemplateTask |
||
| 17 | |||
| 18 | |||
| 19 | class ImportTemplateTaskTest( |
||
| 20 | ImportGenericTaskMixinTestCase, WebSocketMixin, BaseExcelMixin, |
||
| 21 | TestCase): |
||
| 22 | |||
| 23 | # custom values |
||
| 24 | upload_method = "excel.tasks.upload_template" |
||
| 25 | datasource_type = "Template" |
||
| 26 | |||
| 27 | def setUp(self): |
||
| 28 | # calling my base class setup |
||
| 29 | super().setUp() |
||
| 30 | |||
| 31 | # setting task |
||
| 32 | self.my_task = ImportTemplateTask() |
||
| 33 |