mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-28 18:08:35 +00:00
Test for followers api view
This commit is contained in:
parent
b57aa4c9d3
commit
23842f7501
1 changed files with 7 additions and 0 deletions
|
@ -103,6 +103,13 @@ class UserViews(TestCase):
|
||||||
validate_html(result.render())
|
validate_html(result.render())
|
||||||
self.assertEqual(result.status_code, 200)
|
self.assertEqual(result.status_code, 200)
|
||||||
|
|
||||||
|
with patch("bookwyrm.views.user.is_api_request") as is_api:
|
||||||
|
is_api.return_value = True
|
||||||
|
result = view(request, "mouse")
|
||||||
|
self.assertIsInstance(result, ActivitypubResponse)
|
||||||
|
validate_html(result.render())
|
||||||
|
self.assertEqual(result.status_code, 200)
|
||||||
|
|
||||||
def test_followers_page_anonymous(self):
|
def test_followers_page_anonymous(self):
|
||||||
"""there are so many views, this just makes sure it LOADS"""
|
"""there are so many views, this just makes sure it LOADS"""
|
||||||
view = views.Followers.as_view()
|
view = views.Followers.as_view()
|
||||||
|
|
Loading…
Reference in a new issue