diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-13 14:06:50 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-13 14:06:50 +0200 |
commit | adcddefd59de91b6a2ca981c9bd923551ac38694 (patch) | |
tree | 8a495fc2ed542e86d3bf859bc3b73fdcf8d5d6aa /tests/test_media.py | |
parent | c670ed8ce26749442c180dbf8a0a60c153f5d5c4 (diff) | |
download | mastodon.py-adcddefd59de91b6a2ca981c9bd923551ac38694.tar.gz |
clean up media loading, add thumbnail to media_update
Diffstat (limited to 'tests/test_media.py')
-rw-r--r-- | tests/test_media.py | 15 |
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']) |
104 | def test_media_update(api): | 104 | def 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" |