additional test components.

This commit is contained in:
Gareth J. Greenaway 2023-09-28 15:34:41 -07:00 committed by Daniel Wozniak
parent 5b606e8484
commit 0776274479

View file

@ -3806,18 +3806,22 @@ def test_pythonpath():
"""
test pythonpath
"""
python_path = sys.path
ret = core.pythonpath()
assert "pythonpath" in ret
assert ret["pythonpath"] == python_path
def test_pythonversion():
"""
test pythonversion
"""
python_version = [*sys.version_info]
ret = core.pythonversion()
assert "pythonversion" in ret
assert ret["pythonversion"] == python_version
def test_get_machine_id():
@ -3887,6 +3891,11 @@ def test_id():
ret = core.id_()
assert "id" in ret
with patch("salt.grains.core.__opts__", {"id": "test_id_minion_id"}):
ret = core.id_()
assert "id" in ret
assert ret["id"] == "test_id_minion_id"
def test__linux_bin_exists():
"""