From 02cba2d6066f43762ed3bab6a9ed57c0689d7f9e Mon Sep 17 00:00:00 2001 From: "Daniel A. Wozniak" Date: Sun, 10 Dec 2023 02:38:53 -0700 Subject: [PATCH] Fix windows pkg tests --- tests/pytests/unit/modules/test_win_pkg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/pytests/unit/modules/test_win_pkg.py b/tests/pytests/unit/modules/test_win_pkg.py index 3ae8f24f8dd..a976b6d6083 100644 --- a/tests/pytests/unit/modules/test_win_pkg.py +++ b/tests/pytests/unit/modules/test_win_pkg.py @@ -6,6 +6,7 @@ import logging import pytest +import salt.loader.dunder import salt.modules.config as config import salt.modules.cp as cp import salt.modules.pkg_resource as pkg_resource @@ -57,7 +58,7 @@ def configure_loader_modules(minion_opts): opts = minion_opts opts["master_uri"] = "localhost" return { - cp: {"__opts__": opts}, + cp: {"__opts__": salt.loader.dunder.__opts__.with_default(opts)}, win_pkg: { "_get_latest_package_version": MagicMock(return_value="3.03"), "_get_package_info": MagicMock(return_value=pkg_info),