diff tests/test_silos_mastodon.py @ 35:7965adc14569

Handle alt-attributes for images This lets us upload media with a description text on Mastodon.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 10 May 2023 16:11:11 -0700
parents 53de06c2f97d
children d65f6dced79f
line wrap: on
line diff
--- a/tests/test_silos_mastodon.py	Wed May 10 16:10:35 2023 -0700
+++ b/tests/test_silos_mastodon.py	Wed May 10 16:11:11 2023 -0700
@@ -125,7 +125,7 @@
     assert toot == ("This is yet another link http://example.org/blah", None, 'public')  # NOQA
 
 
-def _patched_media_callback(self, tmpfile, mt):
+def _patched_media_callback(self, tmpfile, mt, url, desc):
     return self.client.media_post(tmpfile, mt)