Add skipIf condition for utils.tests.TestStripeCustomerDescription

This commit is contained in:
PCoder 2017-11-25 23:57:58 +01:00
parent 8c5848c1aa
commit 07ffbcda97

View file

@ -97,6 +97,9 @@ class BaseTestCase(TestCase):
return view
@skipIf(settings.STRIPE_API_PRIVATE_KEY_TEST is None or
settings.STRIPE_API_PRIVATE_KEY_TEST is "",
"""Skip because STRIPE_API_PRIVATE_KEY_TEST is not set""")
class TestStripeCustomerDescription(TestCase):
"""
A class to test setting the description field of the stripe customer