Skip to content

Commit 43146e2

Browse files
committed
Simplify test for statistics API
1 parent 72cafaf commit 43146e2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/api/tests/test_api.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,10 +1332,8 @@ def test_returns_exact_progress(self):
13321332
self.client.login(username=self.super_user_name,
13331333
password=self.super_user_pass)
13341334
response = self.client.get(self.url, format='json')
1335-
total = self.doc.count()
1336-
remaining = self.doc.filter(doc_annotations__isnull=True).count()
1337-
self.assertEqual(response.data['total'], total)
1338-
self.assertEqual(response.data['remaining'], remaining)
1335+
self.assertEqual(response.data['total'], 2)
1336+
self.assertEqual(response.data['remaining'], 1)
13391337

13401338
def test_returns_user_count(self):
13411339
self.client.login(username=self.super_user_name,

0 commit comments

Comments
 (0)