mirror of
https://github.com/BEDOLAGA-DEV/remnawave-bedolaga-telegram-bot.git
synced 2026-04-30 17:39:01 +00:00
style: fix ruff formatting in broadcast_service and tests
This commit is contained in:
@@ -428,7 +428,9 @@ class BroadcastService:
|
||||
sent_count,
|
||||
failed_count,
|
||||
blocked_count,
|
||||
status='cancelled' if cancelled else ('completed' if failed_count == 0 and blocked_count == 0 else 'partial'),
|
||||
status='cancelled'
|
||||
if cancelled
|
||||
else ('completed' if failed_count == 0 and blocked_count == 0 else 'partial'),
|
||||
)
|
||||
|
||||
async def _mark_cancelled(
|
||||
|
||||
@@ -745,4 +745,6 @@ async def test_auto_purchase_trial_remaining_days_transferred(monkeypatch):
|
||||
# Проверяем, что подписка продлена на 30 дней + 2 оставшихся дня триала = 32 от now
|
||||
# end_date = trial_end + 30 = (now + 2) + 30 = now + 32
|
||||
actual_total_days = (subscription.end_date - now).days
|
||||
assert actual_total_days == 32, f'Expected 32 days from now (30 purchased + 2 remaining trial), got {actual_total_days}'
|
||||
assert actual_total_days == 32, (
|
||||
f'Expected 32 days from now (30 purchased + 2 remaining trial), got {actual_total_days}'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user