From eb785bdf303d01323c6324b4754c8da0f72fd3e5 Mon Sep 17 00:00:00 2001 From: Shane Lee Date: Fri, 1 Mar 2024 14:47:21 -0700 Subject: [PATCH] Fix some lint --- .../chocolatey/{test_post_2.0.py => test_post_20.py} | 0 .../states/chocolatey/{test_pre_2.0.py => test_pre_20.py} | 0 tests/pytests/unit/modules/test_chocolatey.py | 8 +++----- 3 files changed, 3 insertions(+), 5 deletions(-) rename tests/pytests/functional/states/chocolatey/{test_post_2.0.py => test_post_20.py} (100%) rename tests/pytests/functional/states/chocolatey/{test_pre_2.0.py => test_pre_20.py} (100%) diff --git a/tests/pytests/functional/states/chocolatey/test_post_2.0.py b/tests/pytests/functional/states/chocolatey/test_post_20.py similarity index 100% rename from tests/pytests/functional/states/chocolatey/test_post_2.0.py rename to tests/pytests/functional/states/chocolatey/test_post_20.py diff --git a/tests/pytests/functional/states/chocolatey/test_pre_2.0.py b/tests/pytests/functional/states/chocolatey/test_pre_20.py similarity index 100% rename from tests/pytests/functional/states/chocolatey/test_pre_2.0.py rename to tests/pytests/functional/states/chocolatey/test_pre_20.py diff --git a/tests/pytests/unit/modules/test_chocolatey.py b/tests/pytests/unit/modules/test_chocolatey.py index 0f6207e2382..a98b5ca1bca 100644 --- a/tests/pytests/unit/modules/test_chocolatey.py +++ b/tests/pytests/unit/modules/test_chocolatey.py @@ -345,11 +345,9 @@ 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