Skip to content

Subscriptions using Stripe #199

Subscriptions using Stripe

Subscriptions using Stripe #199

GitHub Actions / Unit Test Results failed Aug 10, 2023 in 0s

2 fail, 65 pass in 16s

  1 files  ±0    1 suites  ±0   16s ⏱️ +5s
67 tests ±0  65 ✔️ ±0  0 💤 ±0  2 ❌ ±0 

Results for commit fff2e30. ± Comparison against earlier commit 523ca9b.

Annotations

Check warning on line 0 in metabrainz.model.payment_test.PaymentModelStripeTestCase

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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