Skip to content

Commit

Permalink
refactor and add test case for payout_contribution
Browse files Browse the repository at this point in the history
  • Loading branch information
Jer-Sch committed Sep 22, 2021
1 parent 99c0486 commit 58b6706
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions app/grants/tests/models/test_clr_match.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def test_clr_match_has_a_test_payout_tx_date(self):
assert clr_match.test_payout_tx_date == None

def test_clr_match_has_a_test_payout_contribution(self):
"""Test 'test_payout_contribution' attribute and default value."""
"""Test 'test_payout_contribution' attribute."""

clr_match = CLRMatchFactory()

Expand All @@ -97,11 +97,19 @@ def test_clr_match_has_payout_tx(self):
assert clr_match.payout_tx == ''

def test_clr_match_has_payout_tx_date(self):
"""Test 'payout_tx_date attribute and default value."""
"""Test 'payout_tx_date' attribute."""

clr_match = CLRMatchFactory()

assert hasattr(clr_match, 'payout_tx_date')
assert clr_match.payout_tx_date == None

def test_clr_match_has_payout_contribution_attribute(self):
"""Test 'payout_contribution' attribute."""

clr_match = CLRMatchFactory()

assert hasattr(clr_match, 'payout_contribution')
assert clr_match.payout_contribution == None


0 comments on commit 58b6706

Please sign in to comment.