Skip to content

Commit

Permalink
fix grains unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mcalmer committed Oct 19, 2024
1 parent be8a332 commit 1fc6f4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions susemanager-utils/susemanager-sls/src/tests/mockery.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 1fc6f4f

Please sign in to comment.