mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Remove unneeded kwarg which also adds confusion
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
c854acb3ee
commit
31068bc174
1 changed files with 6 additions and 6 deletions
|
@ -95,13 +95,13 @@ def test_uptodate_with_changes(pkgs):
|
|||
):
|
||||
# Run state with test=false
|
||||
with patch.dict(pkg.__opts__, {"test": False}):
|
||||
ret = pkg.uptodate("dummy", test=True)
|
||||
ret = pkg.uptodate("dummy")
|
||||
assert ret["result"]
|
||||
assert ret["changes"] == pkgs
|
||||
|
||||
# Run state with test=true
|
||||
with patch.dict(pkg.__opts__, {"test": True}):
|
||||
ret = pkg.uptodate("dummy", test=True)
|
||||
ret = pkg.uptodate("dummy")
|
||||
assert ret["result"] is None
|
||||
assert ret["changes"] == pkgs
|
||||
|
||||
|
@ -158,13 +158,13 @@ def test_uptodate_no_changes():
|
|||
):
|
||||
# Run state with test=false
|
||||
with patch.dict(pkg.__opts__, {"test": False}):
|
||||
ret = pkg.uptodate("dummy", test=True)
|
||||
ret = pkg.uptodate("dummy")
|
||||
assert ret["result"]
|
||||
assert ret["changes"] == {}
|
||||
|
||||
# Run state with test=true
|
||||
with patch.dict(pkg.__opts__, {"test": True}):
|
||||
ret = pkg.uptodate("dummy", test=True)
|
||||
ret = pkg.uptodate("dummy")
|
||||
assert ret["result"]
|
||||
assert ret["changes"] == {}
|
||||
|
||||
|
@ -573,7 +573,7 @@ def test_installed_with_changes_test_true(list_pkgs):
|
|||
expected = {"dummy": {"new": "installed", "old": ""}}
|
||||
# Run state with test=true
|
||||
with patch.dict(pkg.__opts__, {"test": True}):
|
||||
ret = pkg.installed("dummy", test=True)
|
||||
ret = pkg.installed("dummy")
|
||||
assert ret["result"] is None
|
||||
assert ret["changes"] == expected
|
||||
|
||||
|
@ -627,7 +627,7 @@ def test_removed_purged_with_changes_test_true(list_pkgs, action):
|
|||
|
||||
# Run state with test=true
|
||||
with patch.dict(pkg.__opts__, {"test": True}):
|
||||
ret = pkg_actions[action]("pkga", test=True)
|
||||
ret = pkg_actions[action]("pkga")
|
||||
assert ret["result"] is None
|
||||
assert ret["changes"] == expected
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue