diff --git a/boards/tests.py b/boards/tests.py --- a/boards/tests.py +++ b/boards/tests.py @@ -115,7 +115,7 @@ class PostTests(TestCase): all_threads = Post.objects.get_threads() - posts_in_second_page = Post.objects.get_threads(page=1) + posts_in_second_page = Post.objects.get_threads(page=2) first_post = posts_in_second_page[0] self.assertEqual(all_threads[settings.THREADS_PER_PAGE].id, @@ -230,4 +230,4 @@ class ViewTest(TestCase): self.assertEqual(HTTP_CODE_OK, response.status_code, 'Index page not ' 'opened') self.assertEqual('boards/posting_general.html', response.templates[0] - .name, 'Index page should open posting_general template') \ No newline at end of file + .name, 'Index page should open posting_general template')