diff options
author | David Newswanger <gamma.dave@gmail.com> | 2018-02-26 12:01:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-26 12:01:14 -0500 |
commit | 6bd715a17dfc4e6be7344e14752689fd774846a2 (patch) | |
tree | 180d4e4f1a743a2818d884e8fd49cffd2bf7b693 | |
parent | fb6a8c0133267ee7d4ad825d5ff9f0e11a999381 (diff) | |
download | ansible-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.py | 5 |
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): |