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 2 10:57:13 2019 |
||
5 | |||
6 | @author: Paolo Cozzi <[email protected]> |
||
7 | """ |
||
8 | |||
9 | from image_app.models import Submission |
||
10 | |||
11 | |||
12 | class BaseExcelMixin(): |
||
13 | # import this file and populate database once |
||
14 | fixtures = [ |
||
15 | 'excel/dictspecie', |
||
16 | 'excel/speciesynonym', |
||
17 | 'excel/submission', |
||
18 | 'image_app/dictcountry', |
||
19 | 'image_app/dictrole', |
||
20 | 'image_app/dictsex', |
||
21 | 'image_app/organization', |
||
22 | 'image_app/user', |
||
23 | |||
24 | ] |
||
25 | |||
26 | def setUp(self): |
||
27 | # calling my base class setup |
||
28 | super().setUp() |
||
29 | |||
30 | # track submission |
||
31 | self.submission = Submission.objects.get(pk=1) |
||
32 | self.submission_id = 1 |
||
33 |