1
0
Fork 0

Merge branch 'main' into authorized-fetch

This commit is contained in:
Mouse Reeve 2023-01-26 06:22:03 -08:00 committed by GitHub
commit f4de00088f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
46 changed files with 685 additions and 27 deletions

View file

@ -35,6 +35,7 @@ Sender = namedtuple("Sender", ("remote_id", "key_pair"))
class Signature(TestCase):
"""signature test"""
# pylint: disable=invalid-name
def setUp(self):
"""create users and test data"""
with patch("bookwyrm.suggested_users.rerank_suggestions_task.delay"), patch(
@ -88,7 +89,6 @@ class Signature(TestCase):
signature = make_signature(
"post", signer or sender, self.rat.inbox, now, digest
)
with patch("bookwyrm.views.inbox.activity_task.delay"):
with patch("bookwyrm.models.user.set_remote_server.delay"):
return self.send(signature, now, send_data or data, digest)