fix: auto-append new providers to PAYMENT_METHODS_ORDER

This commit is contained in:
3252a8
2026-05-18 22:03:40 +03:00
parent b79f5f4d7d
commit 49cf5ebad8
2 changed files with 33 additions and 0 deletions
+4
View File
@@ -394,11 +394,15 @@ class WebAppAssetTests(unittest.IsolatedAsyncioTestCase):
POSTGRES_PASSWORD="app_password",
TARIFFS_CONFIG_PATH="missing-tariffs.json",
PAYMENT_METHODS_ORDER="yookassa",
STARS_ENABLED=False,
)
app = {"yookassa_service": SimpleNamespace(configured=True)}
methods = subscription_webapp._serialize_payment_methods(settings, app, "en")
# Only yookassa is configured/enabled; every other provider gets
# filtered out by is_visible even though they're auto-appended to the
# order list now.
self.assertEqual(
methods,
[{"id": "yookassa", "name": "Bank card", "icon": "WalletCards"}],