| 37 | |
| 38 | @pytest.fixture(scope="module") |
| 39 | def 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 | |
| 55 | class TestGiveawayWithoutRequest: |