From fdb6e2a140c4f103602e04d782dfbd849e2de788 Mon Sep 17 00:00:00 2001 From: halcy Date: Sun, 13 Nov 2022 13:14:34 +0200 Subject: add thumbnail customization support --- tests/test_media.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'tests/test_media.py') diff --git a/tests/test_media.py b/tests/test_media.py index 8318f93..8c8f825 100644 --- a/tests/test_media.py +++ b/tests/test_media.py @@ -33,9 +33,11 @@ def test_media_post_v1(api): @pytest.mark.parametrize('sensitive', (False, True)) def test_media_post(api, sensitive): media = api.media_post( - 'tests/video.mp4', - description="me when a cat", - focus=(-0.5, 0.3)) + 'tests/video.mp4', + description="me when a cat", + focus=(-0.5, 0.3), + thumbnail='tests/amewatson.jpg' + ) assert media assert media.url is None @@ -46,10 +48,10 @@ def test_media_post(api, sensitive): assert not media2.url is None status = api.status_post( - 'LOL check this out', - media_ids=media2, - sensitive=sensitive - ) + 'LOL check this out', + media_ids=media2, + sensitive=sensitive + ) assert status -- cgit v1.2.3