feat(пополнение): сторож check_topups и check_npd_year_income, строка в утренней сводке

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
anor
2026-10-28 15:00:21 +10:00
co-authored by Claude Opus 5.5
parent fde294d5c9
commit 6444b71057
3 changed files with 128 additions and 1 deletions
+1
View File
@@ -123,5 +123,6 @@ def test_daily_digest_topup_line(env):
db.refund_topup(tid, 30_000, "admin")
_topup(db, "canceled")
_topup(db, "succeeded", age=3 * 86400)
_topup(db, "canceled", age=3 * 86400)
text = dd.render(dd.collect(24))
assert "Пополнений за сутки: 1 на 1 000 ₽; возвратов 1; неоплаченных 1" in text