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

Class PollOptionTestBase

tests/test_poll.py:274–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272
273
274class PollOptionTestBase:
275 text = "test option"
276 voter_count = 3
277 text_entities = [
278 MessageEntity(MessageEntity.BOLD, 0, 4),
279 MessageEntity(MessageEntity.ITALIC, 5, 6),
280 ]
281 added_by_user = User(1, "test_user", False)
282 added_by_chat = Chat(1, "test_chat")
283 addition_date = dtm.datetime.now(dtm.timezone.utc)
284 persistent_id = "persistent_id"
285 media = PollMedia(location=Location(123, 456))
286
287
288class TestPollOptionWithoutRequest(PollOptionTestBase):

Callers

nothing calls this directly

Calls 5

MessageEntityClass · 0.90
UserClass · 0.90
ChatClass · 0.90
PollMediaClass · 0.90
LocationClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…