mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 20:11:14 +00:00
Patch setup in status tests
This commit is contained in:
parent
1d7cea2789
commit
104e4d7cf7
1 changed files with 6 additions and 5 deletions
|
@ -26,11 +26,12 @@ class Status(TestCase):
|
|||
'../../static/images/default_avi.jpg')
|
||||
image = Image.open(image_file)
|
||||
output = BytesIO()
|
||||
image.save(output, format=image.format)
|
||||
self.book.cover.save(
|
||||
'test.jpg',
|
||||
ContentFile(output.getvalue())
|
||||
)
|
||||
with patch('bookwyrm.models.Status.broadcast'):
|
||||
image.save(output, format=image.format)
|
||||
self.book.cover.save(
|
||||
'test.jpg',
|
||||
ContentFile(output.getvalue())
|
||||
)
|
||||
|
||||
def test_status_generated_fields(self, _):
|
||||
''' setting remote id '''
|
||||
|
|
Loading…
Reference in a new issue