0
0
mirror of https://github.com/ihabunek/toot.git synced 2025-10-21 19:44:16 -04:00

Remove use of deprecated status.text_url

This commit is contained in:
Ivan Habunek
2022-11-30 08:55:46 +01:00
parent e396768d15
commit 7b4063fddc
5 changed files with 35 additions and 13 deletions

View File

@@ -293,13 +293,14 @@ def test_reblogged_by(mock_get, monkeypatch, capsys):
])
assert out == expected
@mock.patch('toot.http.post')
def test_upload(mock_post, capsys):
mock_post.return_value = MockResponse({
'id': 123,
'url': 'https://bigfish.software/123/456',
'preview_url': 'https://bigfish.software/789/012',
'text_url': 'https://bigfish.software/345/678',
'url': 'https://bigfish.software/345/678',
'type': 'image',
})