mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-20 23:26:42 +00:00
mock celery task in test signing
This commit is contained in:
parent
77a1fc26f1
commit
6d137ccada
1 changed files with 3 additions and 2 deletions
|
@ -73,7 +73,8 @@ class Signature(TestCase):
|
||||||
digest = digest or make_digest(data)
|
digest = digest or make_digest(data)
|
||||||
signature = make_signature(
|
signature = make_signature(
|
||||||
signer or sender, self.rat.inbox, now, digest)
|
signer or sender, self.rat.inbox, now, digest)
|
||||||
with patch('bookwyrm.incoming.handle_follow.delay') as _:
|
with patch('bookwyrm.incoming.handle_follow.delay'):
|
||||||
|
with patch('bookwyrm.models.user.set_remote_server.delay'):
|
||||||
return self.send(signature, now, send_data or data, digest)
|
return self.send(signature, now, send_data or data, digest)
|
||||||
|
|
||||||
def test_correct_signature(self):
|
def test_correct_signature(self):
|
||||||
|
|
Loading…
Reference in a new issue