skip fmg_script unit test if the pyFMG script is not present (#36732) (#36749)

* skip fmg_script unit test if the pyFMG script is not present

* appease the sanity test gods

(cherry picked from commit 6bd715a17d)
pull/36765/head
David Newswanger 7 years ago committed by GitHub
parent b86f07324e
commit e1eae55e55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -28,6 +28,11 @@ try:
except ImportError: except ImportError:
raise SkipTest("Could not load required modules for testing") raise SkipTest("Could not load required modules for testing")
try:
from pyFMG.fortimgr import FortiManager
except ImportError:
raise SkipTest("FortiManager tests require pyFMG package")
class TestFmgrScriptModule(TestFortimanagerModule): class TestFmgrScriptModule(TestFortimanagerModule):

Loading…
Cancel
Save