This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Failing test for including team members in grprbn
- Loading branch information
1 parent
3930c7d
commit a53adf9
Showing
2 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,8 +32,8 @@ def setUp(self): | |
braintree_customer_id=self.obama_bt_id) | ||
self.obama_route = ExchangeRoute.insert(self.obama, 'braintree-cc', self.obama_cc_token) | ||
# A customer with Paypal attached. | ||
self.homer = self.make_participant('homer', is_suspicious=False, | ||
claimed_time='now') | ||
self.homer = self.make_participant('homer', is_suspicious=False, verified_in='US', | ||
claimed_time='now', email_address='[email protected]') | ||
self.homer_route = ExchangeRoute.insert(self.homer, 'paypal', '[email protected]') | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,6 +164,14 @@ def test_grprbn_includes_team_owners(self): | |
routes = get_ready_payout_routes_by_network(self.db, 'paypal') | ||
assert [r.participant.username for r in routes] == ['picard'] | ||
|
||
def test_grprbn_includes_team_members(self): | ||
enterprise = self.make_team(is_approved=True, available=50) | ||
enterprise.add_member(self.homer, P('picard')) # add a member | ||
self.obama.set_payment_instruction(enterprise, 100) | ||
self.run_payday() | ||
routes = get_ready_payout_routes_by_network(self.db, 'paypal') | ||
assert [r.participant.username for r in routes] == ['homer', 'picard'] | ||
|
||
def test_grprbn_includes_1_0_payouts(self): | ||
alice = self.make_participant('alice', balance=24, status_of_1_0_payout='pending-payout') | ||
ExchangeRoute.insert(alice, 'paypal', '[email protected]') | ||
|