Add Stripe key to skipif condition for CeleryTaskTestCase

This commit is contained in:
PCoder 2017-11-26 00:06:50 +01:00
parent e95967c668
commit a9a77cd6ac

View file

@ -18,6 +18,11 @@ from utils.hosting_utils import get_vm_price
from utils.stripe_utils import StripeUtils
@skipIf(
settings.STRIPE_API_PRIVATE_KEY_TEST is None or
settings.STRIPE_API_PRIVATE_KEY_TEST is "",
"""Stripe details unavailable, so skipping CeleryTaskTestCase"""
)
class CeleryTaskTestCase(TestCase):
@override_settings(
task_eager_propagates=True,