diff --git a/flashcards/tests/test_api.py b/flashcards/tests/test_api.py index 96b1353..2008292 100644 --- a/flashcards/tests/test_api.py +++ b/flashcards/tests/test_api.py @@ -262,5 +262,7 @@ class SectionViewSetTest(APITestCase): self.assertEqual(response.status_code, HTTP_200_OK) def test_section_ordered_deck(self): + self.user.sections.add(self.section) + self.user.save() response = self.client.get('/api/sections/1/ordered_deck/') self.assertEqual(response.status_code, HTTP_200_OK) \ No newline at end of file