mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-12 23:27:22 +00:00
Payment/PayPal: Fix tests
This commit is contained in:
parent
5e3ec5ad14
commit
4a63d78987
@ -29,12 +29,11 @@ from indico_payment_paypal.plugin import PaypalPaymentPlugin
|
||||
('test', True),
|
||||
('foo', False)
|
||||
))
|
||||
def test_ipn_verify_business(business, expected, dummy_event):
|
||||
def test_ipn_verify_business(business, expected, dummy_event_new):
|
||||
rh = RHPaypalIPN()
|
||||
rh.event = dummy_event
|
||||
rh.registration = MagicMock()
|
||||
rh.registration.registration_form.event = dummy_event
|
||||
PaypalPaymentPlugin.event_settings.set(dummy_event, 'business', 'test')
|
||||
rh.registration.registration_form.event_new = dummy_event_new
|
||||
PaypalPaymentPlugin.event_settings.set(dummy_event_new, 'business', 'test')
|
||||
request.form = {'business': business}
|
||||
with PaypalPaymentPlugin.instance.plugin_context():
|
||||
assert rh._verify_business() == expected
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user