From 07ffbcda97922801161202767bf455097f95a6a0 Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 25 Nov 2017 23:57:58 +0100 Subject: [PATCH] Add skipIf condition for utils.tests.TestStripeCustomerDescription --- utils/tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/tests.py b/utils/tests.py index beae6feb..7c7dcc70 100644 --- a/utils/tests.py +++ b/utils/tests.py @@ -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