feat(пополнение): ручки /api/topups, возврат кнопкой, страница результата, финансы и допуск по счёту

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
anor
2026-10-28 14:53:46 +10:00
co-authored by Claude Opus 5.5
parent 841523bc00
commit 7f793af3f2
5 changed files with 289 additions and 48 deletions
+2
View File
@@ -335,6 +335,8 @@ def test_billing_settings_topup_limits(env):
assert r.status_code == 400
r = client.post("/api/admin/billing-settings", headers=ah, json={"topup_presets": "50"})
assert r.status_code == 400
r = client.post("/api/admin/billing-settings", headers=ah, json={"topup_min_rub": "0"})
assert r.status_code == 400
# --- допуск к агенту -----------------------------------------------------------------------