From e1eae55e55c09f114567c053f1799b3cd046e76a Mon Sep 17 00:00:00 2001 From: David Newswanger Date: Mon, 26 Feb 2018 12:41:14 -0500 Subject: [PATCH] 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 6bd715a17dfc4e6be7344e14752689fd774846a2) --- test/units/modules/network/fortimanager/test_fmgr_script.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/units/modules/network/fortimanager/test_fmgr_script.py b/test/units/modules/network/fortimanager/test_fmgr_script.py index 86caf02dbf6..2c5d729dd14 100644 --- a/test/units/modules/network/fortimanager/test_fmgr_script.py +++ b/test/units/modules/network/fortimanager/test_fmgr_script.py @@ -28,6 +28,11 @@ try: except ImportError: 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):