forked from mirrors/bookwyrm
test get started user view with query
This commit is contained in:
parent
fa17d9018f
commit
19c2c7f67c
1 changed files with 12 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue