MCPcopy Index your code
hub / github.com/python-telegram-bot/python-telegram-bot / PaidMediaTestBase

Class PaidMediaTestBase

tests/test_paidmedia.py:49–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48
49class PaidMediaTestBase:
50 type = PaidMediaType.PHOTO
51 width = 640
52 height = 480
53 duration = dtm.timedelta(60)
54 video = Video(
55 file_id="video_file_id",
56 width=640,
57 height=480,
58 file_unique_id="file_unique_id",
59 duration=dtm.timedelta(seconds=60),
60 )
61 photo = (
62 PhotoSize(
63 file_id="photo_file_id",
64 width=640,
65 height=480,
66 file_unique_id="file_unique_id",
67 ),
68 )
69 live_photo = LivePhoto(
70 file_id="live_photo_file_id",
71 file_unique_id="live_photo_file_unique_id",
72 width=640,
73 height=480,
74 duration=dtm.timedelta(seconds=60),
75 photo=photo,
76 )
77
78
79class TestPaidMediaWithoutRequest(PaidMediaTestBase):

Callers

nothing calls this directly

Calls 3

VideoClass · 0.90
PhotoSizeClass · 0.90
LivePhotoClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…