From 19c2c7f67c64aa5f6c731b74abc90d5eb192ddca Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 1 Apr 2021 09:39:57 -0700 Subject: [PATCH] test get started user view with query --- bookwyrm/tests/views/test_get_started.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bookwyrm/tests/views/test_get_started.py b/bookwyrm/tests/views/test_get_started.py index 89cc5a26..71eb4060 100644 --- a/bookwyrm/tests/views/test_get_started.py +++ b/bookwyrm/tests/views/test_get_started.py @@ -113,3 +113,15 @@ class GetStartedViews(TestCase): self.assertIsInstance(result, TemplateResponse) result.render() self.assertEqual(result.status_code, 200) + + def test_users_view_with_query(self): + """ there are so many views, this just makes sure it LOADS """ + view = views.GetStartedUsers.as_view() + request = self.factory.get("?query=rat") + request.user = self.local_user + + result = view(request) + + self.assertIsInstance(result, TemplateResponse) + result.render() + self.assertEqual(result.status_code, 200)