From ec83f5d5064c34651766577d35efa4424ac5014c Mon Sep 17 00:00:00 2001 From: twangboy Date: Thu, 3 Oct 2024 11:03:12 -0600 Subject: [PATCH] Fix win_file tests --- tests/pytests/unit/modules/test_win_file.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/pytests/unit/modules/test_win_file.py b/tests/pytests/unit/modules/test_win_file.py index 83667bb6377..19924c39873 100644 --- a/tests/pytests/unit/modules/test_win_file.py +++ b/tests/pytests/unit/modules/test_win_file.py @@ -218,6 +218,7 @@ def test_check_perms(tmp_path): ret=ret, owner="Guests", grant_perms=grant_perms, + inheritance=False, ) expected = { @@ -234,7 +235,7 @@ def test_check_perms(tmp_path): "result": True, } - assert result == expected + assert result["changes"]["grant_perms"] == expected["changes"]["grant_perms"] owner = win_file.get_user(str(test_dir)) assert owner == "Guests" perms = salt.utils.win_dacl.get_permissions(str(test_dir))