From e3e10c8d3ebc922995338ea815b133ad915b6dd3 Mon Sep 17 00:00:00 2001 From: Adrian Moennich Date: Tue, 29 Sep 2015 17:55:28 +0200 Subject: [PATCH] Payment/PayPal: Fix failing tests --- payment_paypal/tests/controllers_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/payment_paypal/tests/controllers_test.py b/payment_paypal/tests/controllers_test.py index 2a56bec..3451058 100644 --- a/payment_paypal/tests/controllers_test.py +++ b/payment_paypal/tests/controllers_test.py @@ -29,10 +29,10 @@ from indico_payment_paypal.plugin import PaypalPaymentPlugin ('test', True), ('foo', False) )) -def test_ipn_verify_business(business, expected): +def test_ipn_verify_business(business, expected, dummy_event): rh = RHPaypalIPN() - rh.event = MagicMock(id=1) - PaypalPaymentPlugin.event_settings.set(rh.event, 'business', 'test') + rh.event = dummy_event + PaypalPaymentPlugin.event_settings.set(dummy_event, 'business', 'test') request.form = {'business': business} with PaypalPaymentPlugin.instance.plugin_context(): assert rh._verify_business() == expected