Adds missing import and mock

This commit is contained in:
Mouse Reeve 2021-08-03 12:02:47 -07:00
parent 1aff6322ea
commit b059cbdd18
2 changed files with 2 additions and 0 deletions

View file

@ -21,6 +21,7 @@ from bookwyrm import models
@patch("bookwyrm.activitystreams.ActivityStream.add_status")
@patch("bookwyrm.suggested_users.rerank_user_task.delay")
@patch("bookwyrm.suggested_users.rerank_suggestions_task.delay")
class BaseActivity(TestCase):
"""the super class for model-linked activitypub dataclasses"""

View file

@ -1,4 +1,5 @@
""" test for app action functionality """
from unittest.mock import patch
from django.template.response import TemplateResponse
from django.test import TestCase
from django.test.client import RequestFactory