Skipping the import if its deps aren't installed, use --no-skip if you want to run this

This commit is contained in:
Chris Alfonso 2012-04-30 13:04:51 -04:00
parent 1d706dd93e
commit 028f333970
1 changed files with 5 additions and 3 deletions

View File

@ -12,9 +12,11 @@ from nose.plugins.attrib import attr
from nose import with_setup
import unittest
import shutil
from heat.cfntools.cfn_helper import *
from nose.exc import SkipTest
try:
from heat.cfntools.cfn_helper import *
except:
raise SkipTest("unable to import cfn helper, skipping")
@attr(tag=['unit', 'cfn_helper'])
@attr(speed='fast')