From b57aa4c9d32fa5c1c984a3e00df441701c1588fa Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 9 Dec 2021 18:42:09 -0800 Subject: [PATCH] Fixes redirect --- bookwyrm/tests/views/test_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/tests/views/test_user.py b/bookwyrm/tests/views/test_user.py index d1100f92c..c3c0992df 100644 --- a/bookwyrm/tests/views/test_user.py +++ b/bookwyrm/tests/views/test_user.py @@ -176,7 +176,7 @@ class UserViews(TestCase): request.user = self.local_user result = views.hide_suggestions(request) - validate_html(result.render()) + self.assertEqual(result.status_code, 302) self.local_user.refresh_from_db() self.assertFalse(self.local_user.show_suggested_users)