From 5817a951c7d8085b9c6ac388c796a242a8fdacd5 Mon Sep 17 00:00:00 2001 From: Adrian Moennich Date: Tue, 27 Oct 2015 19:55:30 +0100 Subject: [PATCH] Payment/PayPal: Fix tests --- payment_paypal/tests/controllers_test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/payment_paypal/tests/controllers_test.py b/payment_paypal/tests/controllers_test.py index 051a0ed..0491fb7 100644 --- a/payment_paypal/tests/controllers_test.py +++ b/payment_paypal/tests/controllers_test.py @@ -32,6 +32,8 @@ from indico_payment_paypal.plugin import PaypalPaymentPlugin def test_ipn_verify_business(business, expected, dummy_event): rh = RHPaypalIPN() rh.event = dummy_event + rh.registration = MagicMock() + rh.registration.registration_form.event = dummy_event PaypalPaymentPlugin.event_settings.set(dummy_event, 'business', 'test') request.form = {'business': business} with PaypalPaymentPlugin.instance.plugin_context():