Discover not directory wth???

This commit is contained in:
Mouse Reeve 2021-08-08 14:17:02 -07:00
parent e2f3c4602d
commit b7b780e45c
2 changed files with 4 additions and 4 deletions

View file

@ -44,4 +44,4 @@ class Activitystreams(TestCase):
with patch("bookwyrm.activitystreams.populate_stream_task.delay") as redis_mock:
populate_streams()
self.assertEqual(redis_mock.call_count, 4) # 2 users x 2 streams
self.assertEqual(redis_mock.call_count, 6) # 2 users x 3 streams

View file

@ -29,7 +29,7 @@ class DiscoverViews(TestCase):
def test_discover_page_empty(self):
"""there are so many views, this just makes sure it LOADS"""
view = views.Directory.as_view()
view = views.Discover.as_view()
request = self.factory.get("")
request.user = self.local_user
with patch(
@ -44,7 +44,7 @@ class DiscoverViews(TestCase):
@patch("bookwyrm.activitystreams.ActivityStream.add_status")
def test_discover_page(self, *_):
"""there are so many views, this just makes sure it LOADS"""
view = views.Directory.as_view()
view = views.Discover.as_view()
request = self.factory.get("")
request.user = self.local_user
@ -70,7 +70,7 @@ class DiscoverViews(TestCase):
def test_discover_page_logged_out(self):
"""there are so many views, this just makes sure it LOADS"""
view = views.Directory.as_view()
view = views.Discover.as_view()
request = self.factory.get("")
request.user = self.anonymous_user
result = view(request)