Commit 889c3c1048a71ea916dd416ac92311d33be44ee8
1 parent
f15f989dd0
Exists in
master
tests were wrong
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
flashcards/tests/test_api.py
View file @
889c3c1
... | ... | @@ -357,7 +357,7 @@ |
357 | 357 | mask=None).save() |
358 | 358 | response = self.client.get('/api/sections/{}/feed/'.format(self.section.pk)) |
359 | 359 | self.assertEqual(response.status_code, HTTP_200_OK) |
360 | - self.assertEqual(response.data[0]['id'], 1) | |
360 | + self.assertEqual(response.data[1]['id'], 1) | |
361 | 361 | self.flashcard.hide_from(self.user) |
362 | 362 | response = self.client.get('/api/sections/{}/feed/'.format(self.section.pk)) |
363 | 363 | self.assertEqual(response.status_code, HTTP_200_OK) |