class TestWebhookService(unittest.TestCase): amount = 4200 currency = 'EUR' description = 'Test Python' def setUp(self): self.p = PaymillContext(api_key=test_config.api_key) self.webhook = None def test_webhook(self): self.webhook = self.p.get_webhook_service().create_email('*****@*****.**', ['subscription.succeeded'], True) self.assertIsInstance(self.webhook, Webhook) def tearDown(self): self.p.get_webhook_service().remove(self.webhook)
class TestWebhookService(unittest.TestCase): amount = 4200 currency = 'EUR' description = 'Test Python' def setUp(self): self.p = PaymillContext(api_key=test_config.api_key) self.webhook = None def test_webhook(self): self.webhook = self.p.get_webhook_service().create_email( '*****@*****.**', ['subscription.succeeded'], True) self.assertIsInstance(self.webhook, Webhook) def tearDown(self): self.p.get_webhook_service().remove(self.webhook)
def setUp(self): self.p = PaymillContext(api_key=test_config.api_key) self.webhook = None