Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
failing test for #1469
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Jun 21, 2014
1 parent 9cbfb34 commit 63e8aac
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/py/test_participant.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,16 @@ def test_pledging_isnt_giving(self):
alice.set_tip_to(bob, '3.00')
assert alice.giving == Decimal('0.00')

def test_tips_to_patrons_count_as_pledging(self):
alice = self.make_participant('alice', claimed_time='now', last_bill_result='')
bob = self.make_participant('bob', claimed_time='now')
alice.set_tip_to(bob, '3.00')
bob.update_goal(Decimal('-1'))
assert bob.receiving == 0
alice = Participant.from_id(alice.id)
assert alice.giving == 0
assert alice.pledging == Decimal('3.00')


# get_number_of_backers - gnob

Expand Down

0 comments on commit 63e8aac

Please sign in to comment.