mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 12:01:14 +00:00
Discover not directory wth???
This commit is contained in:
parent
e2f3c4602d
commit
b7b780e45c
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue