diff --git a/app/server/tests/test_api.py b/app/server/tests/test_api.py index 907c1cd1..c6349aa0 100644 --- a/app/server/tests/test_api.py +++ b/app/server/tests/test_api.py @@ -933,7 +933,7 @@ class TestStatisticsAPI(APITestCase): main_project = mommy.make('server.TextClassificationProject', users=[super_user]) doc1 = mommy.make('server.Document', project=main_project) doc2 = mommy.make('server.Document', project=main_project) - mommy.make('DocumentAnnotation', document=doc1) + mommy.make('DocumentAnnotation', document=doc1, user=super_user) cls.url = reverse(viewname='statistics', args=[main_project.id]) cls.doc = Document.objects.filter(project=main_project)