aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_media.py')
-rw-r--r--tests/test_media.py15
1 files changed, 9 insertions, 6 deletions
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):
103@pytest.mark.vcr(match_on=['path']) 103@pytest.mark.vcr(match_on=['path'])
104def test_media_update(api): 104def test_media_update(api):
105 media = api.media_post( 105 media = api.media_post(
106 'tests/image.jpg', 106 'tests/video.mp4',
107 description="John Lennon doing a funny walk", 107 description="me when a cat",
108 focus=(-0.5, 0.3)) 108 focus=(-0.5, 0.3)
109 )
109 110
110 assert media 111 assert media
111 112
112 media_up = api.media_update( 113 media_up = api.media_update(
113 media, 114 media,
114 description="John Lennon doing a cool walk", 115 description="John Lennon doing a cool walk",
115 focus=(0.69, 0.69)) 116 focus=(0.69, 0.69),
117 thumbnail='tests/amewatson.jpg'
118 )
116 119
117 assert media_up 120 assert media_up
118 assert media_up['description'] == "John Lennon doing a cool walk" 121 assert media_up['description'] == "John Lennon doing a cool walk"
Powered by cgit v1.2.3 (git 2.41.0)