@@ -93,7 +93,7 @@ def setUpTestData(cls):
93
93
password = cls .super_user_pass ,
94
94
95
95
cls .main_project = mommy .make ('TextClassificationProject' , users = [cls .project_member , super_user ])
96
- sub_project = mommy .make ('TextClassificationProject' , users = [non_project_member ])
96
+ mommy .make ('TextClassificationProject' , users = [non_project_member ])
97
97
cls .url = reverse (viewname = 'project_detail' , args = [cls .main_project .id ])
98
98
cls .data = {'description' : 'lorem' }
99
99
@@ -666,7 +666,7 @@ def setUpTestData(cls):
666
666
cls .label2 = mommy .make ('Label' , project = cls .main_project )
667
667
doc1 = mommy .make ('Document' , project = cls .main_project )
668
668
doc2 = mommy .make ('Document' , project = cls .main_project )
669
- doc3 = mommy .make ('Document' , project = cls .main_project )
669
+ mommy .make ('Document' , project = cls .main_project )
670
670
mommy .make ('SequenceAnnotation' , document = doc1 , user = project_member , label = cls .label1 )
671
671
mommy .make ('SequenceAnnotation' , document = doc2 , user = project_member , label = cls .label2 )
672
672
cls .url = reverse (viewname = 'doc_list' , args = [cls .main_project .id ])
@@ -1039,7 +1039,7 @@ def setUpTestData(cls):
1039
1039
1040
1040
main_project = mommy .make ('TextClassificationProject' , users = [super_user ])
1041
1041
doc1 = mommy .make ('Document' , project = main_project )
1042
- doc2 = mommy .make ('Document' , project = main_project )
1042
+ mommy .make ('Document' , project = main_project )
1043
1043
mommy .make ('DocumentAnnotation' , document = doc1 , user = super_user )
1044
1044
cls .url = reverse (viewname = 'statistics' , args = [main_project .id ])
1045
1045
cls .doc = Document .objects .filter (project = main_project )
0 commit comments