From adcddefd59de91b6a2ca981c9bd923551ac38694 Mon Sep 17 00:00:00 2001 From: halcy Date: Sun, 13 Nov 2022 14:06:50 +0200 Subject: clean up media loading, add thumbnail to media_update --- tests/test_media.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'tests/test_media.py') diff --git a/tests/test_media.py b/tests/test_media.py index 8c8f825..7a358dd 100644 --- a/tests/test_media.py +++ b/tests/test_media.py @@ -103,16 +103,19 @@ def test_media_post_multiple(api): @pytest.mark.vcr(match_on=['path']) def test_media_update(api): media = api.media_post( - 'tests/image.jpg', - description="John Lennon doing a funny walk", - focus=(-0.5, 0.3)) + 'tests/video.mp4', + description="me when a cat", + focus=(-0.5, 0.3) + ) assert media media_up = api.media_update( - media, - description="John Lennon doing a cool walk", - focus=(0.69, 0.69)) + media, + description="John Lennon doing a cool walk", + focus=(0.69, 0.69), + thumbnail='tests/amewatson.jpg' + ) assert media_up assert media_up['description'] == "John Lennon doing a cool walk" -- cgit v1.2.3