Subscriptions using Stripe #199
GitHub Actions / Unit Test Results
failed
Aug 10, 2023 in 0s
2 fail, 65 pass in 16s
Annotations
Check warning on line 0 in metabrainz.model.payment_test.PaymentModelStripeTestCase
github-actions / Unit Test Results
test_log_stripe_charge_donation (metabrainz.model.payment_test.PaymentModelStripeTestCase) failed
reports/tests.xml
Raw output
self = <metabrainz.model.payment_test.PaymentModelStripeTestCase testMethod=test_log_stripe_charge_donation>
mock_stripe = <MagicMock name='PaymentIntent' id='140180146337008'>
@patch("stripe.PaymentIntent")
def test_log_stripe_charge_donation(self, mock_stripe):
# Function should execute without any exceptions
mock_stripe.retrieve.return_value = self.payment_intent
session = self.session_without_metadata.copy()
session["metadata"] = {
"is_donation": "True",
"editor": "lucifer",
"anonymous": "False",
"can_contact": "False"
}
> Payment.log_stripe_charge(session)
E AttributeError: type object 'Payment' has no attribute 'log_stripe_charge'
metabrainz/model/payment_test.py:391: AttributeError
Check warning on line 0 in metabrainz.model.payment_test.PaymentModelStripeTestCase
github-actions / Unit Test Results
test_log_stripe_charge_payment (metabrainz.model.payment_test.PaymentModelStripeTestCase) failed
reports/tests.xml
Raw output
self = <metabrainz.model.payment_test.PaymentModelStripeTestCase testMethod=test_log_stripe_charge_payment>
mock_stripe = <MagicMock name='PaymentIntent' id='140180148167680'>
@patch("stripe.PaymentIntent")
def test_log_stripe_charge_payment(self, mock_stripe):
# Function should execute without any exceptions
mock_stripe.retrieve.return_value = self.payment_intent
session = self.session_without_metadata.copy()
session["metadata"] = {
"is_donation": "False",
"email": "[email protected]",
"invoice_number": 42,
}
> Payment.log_stripe_charge(session)
E AttributeError: type object 'Payment' has no attribute 'log_stripe_charge'
metabrainz/model/payment_test.py:404: AttributeError
Loading