summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Newswanger <gamma.dave@gmail.com>2018-02-26 12:01:14 -0500
committerGitHub <noreply@github.com>2018-02-26 12:01:14 -0500
commit6bd715a17dfc4e6be7344e14752689fd774846a2 (patch)
tree180d4e4f1a743a2818d884e8fd49cffd2bf7b693
parentfb6a8c0133267ee7d4ad825d5ff9f0e11a999381 (diff)
downloadansible-6bd715a17dfc4e6be7344e14752689fd774846a2.tar.gz
skip fmg_script unit test if the pyFMG script is not present (#36732)
* skip fmg_script unit test if the pyFMG script is not present * appease the sanity test gods
-rw-r--r--test/units/modules/network/fortimanager/test_fmgr_script.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/units/modules/network/fortimanager/test_fmgr_script.py b/test/units/modules/network/fortimanager/test_fmgr_script.py
index 86caf02dbf..2c5d729dd1 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):