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

Class PollMediaTestBase

tests/test_poll.py:167–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165
166
167class PollMediaTestBase:
168 animation = Animation("blah", "unique_id", 320, 180, 1)
169 audio = Audio(file_id="file_id", file_unique_id="file_unique_id", duration=30)
170 document = Document("file_id", "file_unique_id", "file_name", 42)
171 location = Location(123, 456)
172 photo = (PhotoSize("file_id", "file_unique_id", 1, 1),)
173 sticker = Sticker("file_id", "file_unique_id", 512, 512, False, False, "regular")
174 venue = Venue(location=Location(123, 456), title="title", address="address")
175 video = Video(
176 file_id="video_file_id",
177 width=640,
178 height=480,
179 file_unique_id="file_unique_id",
180 duration=dtm.timedelta(seconds=60),
181 )
182 live_photo = LivePhoto(
183 file_id="video_file_id",
184 file_unique_id="file_unique_id",
185 width=640,
186 height=480,
187 duration=dtm.timedelta(seconds=60),
188 mime_type="video/mp4",
189 file_size=326534,
190 )
191
192
193class TestPollMediaWithoutRequest(PollMediaTestBase):

Callers

nothing calls this directly

Calls 9

AnimationClass · 0.90
AudioClass · 0.90
DocumentClass · 0.90
LocationClass · 0.90
PhotoSizeClass · 0.90
StickerClass · 0.90
VenueClass · 0.90
VideoClass · 0.90
LivePhotoClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…