Mercurial > silorider
comparison 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 |
comparison
equal
deleted
inserted
replaced
34:8c513e43673d | 35:7965adc14569 |
---|---|
123 ctx, _ = cli.run('process') | 123 ctx, _ = cli.run('process') |
124 toot = ctx.silos[0].client.toots[0] | 124 toot = ctx.silos[0].client.toots[0] |
125 assert toot == ("This is yet another link http://example.org/blah", None, 'public') # NOQA | 125 assert toot == ("This is yet another link http://example.org/blah", None, 'public') # NOQA |
126 | 126 |
127 | 127 |
128 def _patched_media_callback(self, tmpfile, mt): | 128 def _patched_media_callback(self, tmpfile, mt, url, desc): |
129 return self.client.media_post(tmpfile, mt) | 129 return self.client.media_post(tmpfile, mt) |
130 | 130 |
131 | 131 |
132 @pytest.fixture(scope='session') | 132 @pytest.fixture(scope='session') |
133 def mastmock(): | 133 def mastmock(): |