Patch setup in status tests
This commit is contained in:
parent
1d7cea2789
commit
104e4d7cf7
1 changed files with 6 additions and 5 deletions
|
@ -26,6 +26,7 @@ class Status(TestCase):
|
|||
'../../static/images/default_avi.jpg')
|
||||
image = Image.open(image_file)
|
||||
output = BytesIO()
|
||||
with patch('bookwyrm.models.Status.broadcast'):
|
||||
image.save(output, format=image.format)
|
||||
self.book.cover.save(
|
||||
'test.jpg',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue