diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-13 13:14:34 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-13 13:14:34 +0200 |
commit | fdb6e2a140c4f103602e04d782dfbd849e2de788 (patch) | |
tree | ea29347bbf60c8decbf68406e18382a6fa9b4ddb /tests/test_media.py | |
parent | 4218cf29301f6819c986fb9b7d6af810b12fa2d1 (diff) | |
download | mastodon.py-fdb6e2a140c4f103602e04d782dfbd849e2de788.tar.gz |
add thumbnail customization support
Diffstat (limited to 'tests/test_media.py')
-rw-r--r-- | tests/test_media.py | 16 |
1 files changed, 9 insertions, 7 deletions
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): | |||
33 | @pytest.mark.parametrize('sensitive', (False, True)) | 33 | @pytest.mark.parametrize('sensitive', (False, True)) |
34 | def test_media_post(api, sensitive): | 34 | def test_media_post(api, sensitive): |
35 | media = api.media_post( | 35 | media = api.media_post( |
36 | 'tests/video.mp4', | 36 | 'tests/video.mp4', |
37 | description="me when a cat", | 37 | description="me when a cat", |
38 | focus=(-0.5, 0.3)) | 38 | focus=(-0.5, 0.3), |
39 | thumbnail='tests/amewatson.jpg' | ||
40 | ) | ||
39 | 41 | ||
40 | assert media | 42 | assert media |
41 | assert media.url is None | 43 | assert media.url is None |
@@ -46,10 +48,10 @@ def test_media_post(api, sensitive): | |||
46 | assert not media2.url is None | 48 | assert not media2.url is None |
47 | 49 | ||
48 | status = api.status_post( | 50 | status = api.status_post( |
49 | 'LOL check this out', | 51 | 'LOL check this out', |
50 | media_ids=media2, | 52 | media_ids=media2, |
51 | sensitive=sensitive | 53 | sensitive=sensitive |
52 | ) | 54 | ) |
53 | 55 | ||
54 | assert status | 56 | assert status |
55 | 57 | ||