Fixes fav logic and base activity test
This commit is contained in:
parent
47cf77145d
commit
410e0b04bb
3 changed files with 7 additions and 3 deletions
|
@ -208,7 +208,10 @@ class BaseActivity(TestCase):
|
|||
# sets the celery task call to the function call
|
||||
with patch(
|
||||
'bookwyrm.activitypub.base_activity.set_related_field.delay'):
|
||||
update_data.to_model(model=models.Status, instance=status)
|
||||
with patch('bookwyrm.models.status.Status.ignore_activity') \
|
||||
as discarder:
|
||||
discarder.return_value = False
|
||||
update_data.to_model(model=models.Status, instance=status)
|
||||
self.assertIsNone(status.attachments.first())
|
||||
|
||||
|
||||
|
|
|
@ -484,7 +484,7 @@ class Inbox(TestCase):
|
|||
'actor': 'https://example.com/users/rat',
|
||||
'type': 'Like',
|
||||
'published': 'Mon, 25 May 2020 19:31:20 GMT',
|
||||
'object': 'https://example.com/status/1',
|
||||
'object': self.status.remote_id,
|
||||
}
|
||||
|
||||
views.inbox.activity_task(activity)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue