Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Tiered Pricing Plans #629

Open
wants to merge 14 commits into
base: original
Choose a base branch
from
Prev Previous commit
Next Next commit
Add Tests for ConvertAmountForDBTests
  • Loading branch information
jksimoniii committed Feb 1, 2019
commit 271ddfbd7d569e2aa7a659a93f9e94fecab5c709
5 changes: 5 additions & 0 deletions pinax/stripe/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ def test_convert_amount_for_db_none_currency(self):
actual = convert_amount_for_db(999, currency=None)
self.assertEqual(expected, actual)

def test_convert_amount_for_db_none_amount(self):
expected = decimal.Decimal("0.00")
actual = convert_amount_for_db(None)
self.assertEquals(expected, actual)


class ConvertAmountForApiTests(TestCase):

Expand Down