Skip to content

Commit cb1dce9

Browse files
committed
Remove unused variables
1 parent 8713a28 commit cb1dce9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/api/tests/test_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def setUpTestData(cls):
9393
password=cls.super_user_pass,
9494
9595
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])
9797
cls.url = reverse(viewname='project_detail', args=[cls.main_project.id])
9898
cls.data = {'description': 'lorem'}
9999

@@ -666,7 +666,7 @@ def setUpTestData(cls):
666666
cls.label2 = mommy.make('Label', project=cls.main_project)
667667
doc1 = mommy.make('Document', project=cls.main_project)
668668
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)
670670
mommy.make('SequenceAnnotation', document=doc1, user=project_member, label=cls.label1)
671671
mommy.make('SequenceAnnotation', document=doc2, user=project_member, label=cls.label2)
672672
cls.url = reverse(viewname='doc_list', args=[cls.main_project.id])
@@ -1039,7 +1039,7 @@ def setUpTestData(cls):
10391039

10401040
main_project = mommy.make('TextClassificationProject', users=[super_user])
10411041
doc1 = mommy.make('Document', project=main_project)
1042-
doc2 = mommy.make('Document', project=main_project)
1042+
mommy.make('Document', project=main_project)
10431043
mommy.make('DocumentAnnotation', document=doc1, user=super_user)
10441044
cls.url = reverse(viewname='statistics', args=[main_project.id])
10451045
cls.doc = Document.objects.filter(project=main_project)

0 commit comments

Comments
 (0)