Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienheureux authored and WhyNotHugo committed Jun 13, 2024
1 parent 3d5c849 commit d90d8b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions payments/stripe/test_stripev3.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ def test_provider_create_session_failure_with_transaction_id(self):
with patch("stripe.checkout.Session.create"), self.assertRaises(PaymentError):
provider.create_session(payment)

def test_provider_create_session_success_with_billing_name(self):
payment = Payment()
payment.billing_name = "Billy Ngname"
provider = StripeProviderV3(api_key=API_KEY)
provider.create_session(payment)

def test_provider_status(self):
payment = Payment()
provider = StripeProviderV3(api_key=API_KEY)
Expand Down

0 comments on commit d90d8b1

Please sign in to comment.