From 944d3cd744bd32e45fecedabef7d1520736f01da Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Wed, 3 Apr 2024 09:02:49 +0100 Subject: [PATCH] Revert "Fix some lint" This reverts commit eb785bdf303d01323c6324b4754c8da0f72fd3e5. --- .../chocolatey/{test_post_20.py => test_post_2.0.py} | 0 .../states/chocolatey/{test_pre_20.py => test_pre_2.0.py} | 0 tests/pytests/unit/modules/test_chocolatey.py | 8 +++++--- 3 files changed, 5 insertions(+), 3 deletions(-) rename tests/pytests/functional/states/chocolatey/{test_post_20.py => test_post_2.0.py} (100%) rename tests/pytests/functional/states/chocolatey/{test_pre_20.py => test_pre_2.0.py} (100%) diff --git a/tests/pytests/functional/states/chocolatey/test_post_20.py b/tests/pytests/functional/states/chocolatey/test_post_2.0.py similarity index 100% rename from tests/pytests/functional/states/chocolatey/test_post_20.py rename to tests/pytests/functional/states/chocolatey/test_post_2.0.py diff --git a/tests/pytests/functional/states/chocolatey/test_pre_20.py b/tests/pytests/functional/states/chocolatey/test_pre_2.0.py similarity index 100% rename from tests/pytests/functional/states/chocolatey/test_pre_20.py rename to tests/pytests/functional/states/chocolatey/test_pre_2.0.py diff --git a/tests/pytests/unit/modules/test_chocolatey.py b/tests/pytests/unit/modules/test_chocolatey.py index a98b5ca1bca..0f6207e2382 100644 --- a/tests/pytests/unit/modules/test_chocolatey.py +++ b/tests/pytests/unit/modules/test_chocolatey.py @@ -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