Revert "Fix some lint"

This reverts commit eb785bdf30.
This commit is contained in:
Pedro Algarvio 2024-04-03 09:02:49 +01:00
parent 1a8ea6b343
commit 944d3cd744
3 changed files with 5 additions and 3 deletions

View file

@ -345,9 +345,11 @@ def test_chocolatey_version_refresh():
context = {"chocolatey._version": "0.9.9"}
mock_find = MagicMock(return_value="some_path")
mock_run = MagicMock(return_value="2.2.0")
with patch.dict(chocolatey.__context__, context), patch.object(
chocolatey, "_find_chocolatey", mock_find
), patch.dict(chocolatey.__salt__, {"cmd.run": mock_run}):
with (
patch.dict(chocolatey.__context__, context),
patch.object(chocolatey, "_find_chocolatey", mock_find),
patch.dict(chocolatey.__salt__, {"cmd.run": mock_run}),
):
result = chocolatey.chocolatey_version(refresh=True)
expected = "2.2.0"
assert result == expected