Skip to content

Commit 95cebf9

Browse files
committed
fix: add plan for test subscription
1 parent cdf2de4 commit 95cebf9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/test_webhooks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ def _send_alert(self, data):
1515
def test_webhook_is_valid_alert(self, is_valid_webhook):
1616
valid_alert = deepcopy(FAKE_ALERT_TEST_SUBSCRIPTION_CREATED)
1717
valid_alert["p_signature"] = "valid-signature"
18+
plan = Plan.objects.create(pk=1, name="monthly-subscription", billing_type="month", billing_period=1, trial_days=0)
1819

1920
resp = self._send_alert(valid_alert)
2021
self.assertTrue(is_valid_webhook.called)

0 commit comments

Comments
 (0)