mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-18 15:41:12 +00:00
Fixes tests
This commit is contained in:
parent
c727d351ba
commit
473ad5ffba
1 changed files with 2 additions and 3 deletions
|
@ -126,7 +126,7 @@ class ListViews(TestCase):
|
|||
self.assertIsInstance(result, TemplateResponse)
|
||||
result.render()
|
||||
self.assertEqual(result.status_code, 200)
|
||||
self.assertEqual(result.context_data["lists"].object_list, [])
|
||||
self.assertEqual(len(result.context_data["lists"].object_list), 0)
|
||||
|
||||
def test_saved_lists_page_logged_out(self):
|
||||
"""logged out saved lists"""
|
||||
|
@ -135,7 +135,7 @@ class ListViews(TestCase):
|
|||
request.user = self.anonymous_user
|
||||
|
||||
result = view(request)
|
||||
self.assertEqual(result.status_code, 301)
|
||||
self.assertEqual(result.status_code, 302)
|
||||
|
||||
def test_lists_create(self):
|
||||
"""create list view"""
|
||||
|
@ -378,5 +378,4 @@ class ListViews(TestCase):
|
|||
request.user = self.anonymous_user
|
||||
|
||||
result = view(request, self.local_user.username)
|
||||
result.render()
|
||||
self.assertEqual(result.status_code, 302)
|
||||
|
|
Loading…
Reference in a new issue