Patch setup in status tests

This commit is contained in:
Mouse Reeve 2021-02-09 13:06:59 -08:00
parent 1d7cea2789
commit 104e4d7cf7

View File

@ -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',