fixes logged out view test

This commit is contained in:
Mouse Reeve 2021-08-08 14:43:17 -07:00
parent b7b780e45c
commit c8e7e95c17

View file

@ -74,6 +74,4 @@ class DiscoverViews(TestCase):
request = self.factory.get("") request = self.factory.get("")
request.user = self.anonymous_user request.user = self.anonymous_user
result = view(request) result = view(request)
self.assertIsInstance(result, TemplateResponse) self.assertEqual(result.status_code, 302)
self.assertEqual(result.status_code, 200)
result.render()