mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-20 15:17:06 +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,8 +73,9 @@ class Signature(TestCase):
|
|||
digest = digest or make_digest(data)
|
||||
signature = make_signature(
|
||||
signer or sender, self.rat.inbox, now, digest)
|
||||
with patch('bookwyrm.incoming.handle_follow.delay') as _:
|
||||
return self.send(signature, now, send_data or data, digest)
|
||||
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)
|
||||
|
||||
def test_correct_signature(self):
|
||||
response = self.send_test_request(sender=self.mouse)
|
||||
|
|
Loading…
Reference in a new issue