forked from mirrors/bookwyrm
fixes logged out view test
This commit is contained in:
parent
b7b780e45c
commit
c8e7e95c17
1 changed files with 1 additions and 3 deletions
|
@ -74,6 +74,4 @@ class DiscoverViews(TestCase):
|
|||
request = self.factory.get("")
|
||||
request.user = self.anonymous_user
|
||||
result = view(request)
|
||||
self.assertIsInstance(result, TemplateResponse)
|
||||
self.assertEqual(result.status_code, 200)
|
||||
result.render()
|
||||
self.assertEqual(result.status_code, 302)
|
||||
|
|
Loading…
Reference in a new issue