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

Function giveaway

tests/test_giveaway.py:39–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38@pytest.fixture(scope="module")
39def giveaway():
40 return Giveaway(
41 chats=[Chat(1, Chat.CHANNEL), Chat(2, Chat.SUPERGROUP)],
42 winners_selection_date=TestGiveawayWithoutRequest.winners_selection_date,
43 winner_count=TestGiveawayWithoutRequest.winner_count,
44 only_new_members=TestGiveawayWithoutRequest.only_new_members,
45 has_public_winners=TestGiveawayWithoutRequest.has_public_winners,
46 prize_description=TestGiveawayWithoutRequest.prize_description,
47 country_codes=TestGiveawayWithoutRequest.country_codes,
48 premium_subscription_month_count=(
49 TestGiveawayWithoutRequest.premium_subscription_month_count
50 ),
51 prize_star_count=TestGiveawayWithoutRequest.prize_star_count,
52 )
53
54
55class TestGiveawayWithoutRequest:

Callers

nothing calls this directly

Calls 2

GiveawayClass · 0.90
ChatClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…