diff --git a/susemanager-utils/susemanager-sls/src/tests/mockery.py b/susemanager-utils/susemanager-sls/src/tests/mockery.py index 0a88820b01e4..3975f7b08719 100644 --- a/susemanager-utils/susemanager-sls/src/tests/mockery.py +++ b/susemanager-utils/susemanager-sls/src/tests/mockery.py @@ -24,6 +24,7 @@ def setup_environment(): sys.modules["salt.utils.odict"] = MagicMock() sys.modules["salt.utils.minions"] = MagicMock() sys.modules["salt.utils.network"] = MagicMock() + sys.modules["salt.utils.http"] = MagicMock() sys.modules["salt.modules"] = MagicMock() sys.modules["salt.modules.cmdmod"] = MagicMock() sys.modules["salt.modules.virt"] = MagicMock() diff --git a/susemanager-utils/susemanager-sls/src/tests/test_grains_mgr_server.py b/susemanager-utils/susemanager-sls/src/tests/test_grains_mgr_server.py index 814bc6a07178..3ab769f0491b 100644 --- a/susemanager-utils/susemanager-sls/src/tests/test_grains_mgr_server.py +++ b/susemanager-utils/susemanager-sls/src/tests/test_grains_mgr_server.py @@ -21,6 +21,7 @@ # pylint: disable-next=wrong-import-position from ..grains import mgr_server +mgr_server._api_query = MagicMock(return_value={}) def test_server(): mgr_server.RHNCONF = os.path.join(os.path.abspath(""), "data", "rhnconf.sample")