From fc36e0c5840f2854019075c2714949f67212eed1 Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Wed, 31 May 2017 07:50:43 -0400 Subject: [PATCH] Properly add email during make_participant --- gratipay/testing/harness.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gratipay/testing/harness.py b/gratipay/testing/harness.py index 6cdd53515e..750dd60d83 100644 --- a/gratipay/testing/harness.py +++ b/gratipay/testing/harness.py @@ -256,6 +256,10 @@ def make_participant(self, username, **kw): route = ExchangeRoute.insert(participant, 'paypal', 'abcd@gmail.com') route.update_error(kw.pop('last_paypal_result')) + # Handle email address + if 'email_address' in kw: + self.add_and_verify_email(participant, kw.pop('email_address')) + # Update participant verified_in = kw.pop('verified_in', []) if kw: