Add Stripe key to skipif condition for CeleryTaskTestCase
This commit is contained in:
		
					parent
					
						
							
								e95967c668
							
						
					
				
			
			
				commit
				
					
						a9a77cd6ac
					
				
			
		
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -18,6 +18,11 @@ from utils.hosting_utils import get_vm_price | ||||||
| from utils.stripe_utils import StripeUtils | 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): | class CeleryTaskTestCase(TestCase): | ||||||
|     @override_settings( |     @override_settings( | ||||||
|         task_eager_propagates=True, |         task_eager_propagates=True, | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue