forked from mirrors/bookwyrm
Some tests fixes
This commit is contained in:
parent
975ef7d38e
commit
4de406afe1
3 changed files with 3 additions and 3 deletions
|
@ -30,7 +30,7 @@ class OpenLibraryImport(TestCase):
|
||||||
self.csv = open(datafile, "r", encoding=self.importer.encoding)
|
self.csv = open(datafile, "r", encoding=self.importer.encoding)
|
||||||
with patch("bookwyrm.suggested_users.rerank_suggestions_task.delay"), patch(
|
with patch("bookwyrm.suggested_users.rerank_suggestions_task.delay"), patch(
|
||||||
"bookwyrm.activitystreams.populate_stream_task.delay"
|
"bookwyrm.activitystreams.populate_stream_task.delay"
|
||||||
):
|
), patch("bookwyrm.lists_stream.populate_lists_task.delay"):
|
||||||
self.local_user = models.User.objects.create_user(
|
self.local_user = models.User.objects.create_user(
|
||||||
"mouse", "mouse@mouse.mouse", "password", local=True
|
"mouse", "mouse@mouse.mouse", "password", local=True
|
||||||
)
|
)
|
||||||
|
|
|
@ -26,7 +26,7 @@ class AnnualSummary(TestCase):
|
||||||
self.factory = RequestFactory()
|
self.factory = RequestFactory()
|
||||||
with patch("bookwyrm.suggested_users.rerank_suggestions_task.delay"), patch(
|
with patch("bookwyrm.suggested_users.rerank_suggestions_task.delay"), patch(
|
||||||
"bookwyrm.activitystreams.populate_stream_task.delay"
|
"bookwyrm.activitystreams.populate_stream_task.delay"
|
||||||
):
|
), patch("bookwyrm.lists_stream.populate_lists_task.delay"):
|
||||||
self.local_user = models.User.objects.create_user(
|
self.local_user = models.User.objects.create_user(
|
||||||
"mouse@local.com",
|
"mouse@local.com",
|
||||||
"mouse@mouse.com",
|
"mouse@mouse.com",
|
||||||
|
|
|
@ -72,7 +72,7 @@ class ListViews(TestCase):
|
||||||
|
|
||||||
models.SiteSettings.objects.create()
|
models.SiteSettings.objects.create()
|
||||||
|
|
||||||
@patch("bookwyrm.lists_stream.ListsStream.get_activity_stream")
|
@patch("bookwyrm.lists_stream.ListsStream.get_list_stream")
|
||||||
def test_lists_page(self, _):
|
def test_lists_page(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.Lists.as_view()
|
view = views.Lists.as_view()
|
||||||
|
|
Loading…
Reference in a new issue