fix: wire subscription service for yookassa hwid payments

This commit is contained in:
3252a8
2026-05-27 18:13:22 +03:00
parent 25056602d8
commit 1c9e55d797
4 changed files with 107 additions and 0 deletions
+1
View File
@@ -104,6 +104,7 @@ class BuildServicesWiringTests(unittest.TestCase):
self.assertIsInstance(yookassa, YooKassaService)
# Identity check: the wired attribute must be the *same* instance.
self.assertIs(getattr(subscription, "yookassa_service", None), yookassa)
self.assertIs(getattr(yookassa, "subscription_service", None), subscription)
def test_panel_webhook_service_can_reach_subscription_service(self):
"""The 24h pre-expiry handler in panel_webhook_service.handle_event