fix: make provider services reactive to runtime config changes

This commit is contained in:
3252a8
2026-05-18 21:53:53 +03:00
parent d870915dc0
commit b79f5f4d7d
8 changed files with 260 additions and 96 deletions
+3 -1
View File
@@ -117,8 +117,10 @@ class FreeKassaServiceTests(unittest.TestCase):
class CryptoPayServiceTests(unittest.TestCase):
def _make_service(self) -> CryptoPayService:
from bot.payment_providers.cryptopay import CryptoPayConfig
service = CryptoPayService.__new__(CryptoPayService)
service.token = "cryptopay-token"
service.config = CryptoPayConfig(TOKEN="cryptopay-token")
return service
def test_validate_webhook_signature_accepts_valid_signature(self):