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

Function poll

tests/test_poll.py:465–490  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

463
464@pytest.fixture(scope="module")
465def poll():
466 poll = Poll(
467 PollTestBase.id_,
468 PollTestBase.question,
469 PollTestBase.options,
470 PollTestBase.total_voter_count,
471 PollTestBase.is_closed,
472 PollTestBase.is_anonymous,
473 PollTestBase.type,
474 PollTestBase.allows_multiple_answers,
475 explanation=PollTestBase.explanation,
476 explanation_entities=PollTestBase.explanation_entities,
477 open_period=PollTestBase.open_period,
478 close_date=PollTestBase.close_date,
479 question_entities=PollTestBase.question_entities,
480 allows_revoting=PollTestBase.allows_revoting,
481 members_only=PollTestBase.members_only,
482 correct_option_ids=PollTestBase.correct_option_ids,
483 description=PollTestBase.description,
484 description_entities=PollTestBase.description_entities,
485 country_codes=PollTestBase.country_codes,
486 media=PollTestBase.media,
487 explanation_media=PollTestBase.explanation_media,
488 )
489 poll._unfreeze()
490 return poll
491
492
493class PollTestBase:

Callers

nothing calls this directly

Calls 2

PollClass · 0.90
_unfreezeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…