From ab186354f307d95999eec9275afcbe89b07a796a Mon Sep 17 00:00:00 2001 From: Rohan Rangray Date: Sat, 16 May 2015 17:36:32 -0700 Subject: [PATCH] Fixed the test for ordered_deck --- flashcards/tests/test_api.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- 1.9.1