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):