mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Make pre-commit check happy
This commit is contained in:
parent
98ec4e3a09
commit
45cbd66041
1 changed files with 1 additions and 1 deletions
|
@ -1521,7 +1521,7 @@ def test_list_upgrades_gt9(python_binary):
|
|||
{"latest_filetype": "wheel", "version": "1.4.1", "name": "appdirs", "latest_version": "1.4.3"},
|
||||
{"latest_filetype": "sdist", "version": "1.11.63", "name": "awscli", "latest_version": "1.12.1"}
|
||||
]"""
|
||||
mock = MagicMock(return_value={"retcode": 0, "stdout": "{}".format(eggs)})
|
||||
mock = MagicMock(return_value={"retcode": 0, "stdout": f"{eggs}"})
|
||||
with patch.dict(pip.__salt__, {"cmd.run_all": mock}):
|
||||
with patch("salt.modules.pip.version", MagicMock(return_value="9.1.1")):
|
||||
ret = pip.list_upgrades()
|
||||
|
|
Loading…
Add table
Reference in a new issue