fix: assign default tariff to referral welcome bonuses

This commit is contained in:
3252a8
2026-06-07 22:28:30 +03:00
parent d5b23d8306
commit 5cee619dd0
4 changed files with 95 additions and 0 deletions
@@ -45,6 +45,7 @@ class WebAppReferralWelcomeBonusTests(IsolatedAsyncioTestCase):
REFERRAL_WELCOME_BONUS_DAYS=3,
REFERRAL_WELCOME_BONUS_WITHOUT_TELEGRAM_ENABLED=True,
DISPOSABLE_EMAIL_DOMAINS="mailinator.com",
tariffs_config=SimpleNamespace(default_tariff="standard"),
)
user = SimpleNamespace(
user_id=42,
@@ -75,4 +76,5 @@ class WebAppReferralWelcomeBonusTests(IsolatedAsyncioTestCase):
42,
3,
reason="referral_welcome_bonus",
tariff_key="standard",
)