From c8e7e95c17a98093f0ee21104e6214afc2a9a6dd Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sun, 8 Aug 2021 14:43:17 -0700 Subject: [PATCH] fixes logged out view test --- bookwyrm/tests/views/test_discover.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bookwyrm/tests/views/test_discover.py b/bookwyrm/tests/views/test_discover.py index 1b0c99cd..eff62cb6 100644 --- a/bookwyrm/tests/views/test_discover.py +++ b/bookwyrm/tests/views/test_discover.py @@ -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)