Skip to content

Commit

Permalink
Fix windows pkg tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Sep 16, 2024
1 parent 5ee6d3c commit d4ee873
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/pytests/unit/modules/test_win_pkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

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
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit d4ee873

Please sign in to comment.