Skip to content

Commit a5594e7

Browse files
twangboydwoz
authored andcommitted
Use Sudo instead of Everything
1 parent ca81605 commit a5594e7

File tree

2 files changed

+14
-18
lines changed

2 files changed

+14
-18
lines changed

Diff for: tests/pytests/functional/states/test_chocolatey_1_2_1.py

+7-9
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ def vim(chocolatey_mod):
110110

111111

112112
@pytest.fixture(scope="function")
113-
def everything(chocolatey_mod):
114-
chocolatey_mod.install(name="everything", version="1.4.1935")
113+
def sudo(chocolatey_mod):
114+
chocolatey_mod.install(name="sudo", version="1.1.2")
115115
yield
116-
chocolatey_mod.uninstall(name="everything", force=True)
116+
chocolatey_mod.uninstall(name="sudo", force=True)
117117

118118

119119
def test_installed_latest(clean, chocolatey, chocolatey_mod):
@@ -129,12 +129,10 @@ def test_installed_version(clean, chocolatey, chocolatey_mod):
129129
assert result["vim"]["installed"][0] == "9.0.1672"
130130

131131

132-
@pytest.mark.skipif(True, reason="Timing out, skipping for now")
133-
def test_installed_version_existing_capitalization(
134-
everything, chocolatey, chocolatey_mod
135-
):
136-
result = chocolatey.installed(name="everything", version="1.4.11024")
137-
expected_changes = {"Everything": {"new": ["1.4.11024"], "old": ["1.4.1935"]}}
132+
# @pytest.mark.skipif(True, reason="Timing out, skipping for now")
133+
def test_installed_version_existing_capitalization(sudo, chocolatey, chocolatey_mod):
134+
result = chocolatey.installed(name="sudo", version="1.1.3")
135+
expected_changes = {"Sudo": {"new": ["1.1.3"], "old": ["1.1.2"]}}
138136
assert result["changes"] == expected_changes
139137

140138

Diff for: tests/pytests/functional/states/test_chocolatey_latest.py

+7-9
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ def vim(chocolatey_mod):
110110

111111

112112
@pytest.fixture(scope="function")
113-
def everything(chocolatey_mod):
114-
chocolatey_mod.install(name="everything", version="1.4.11024")
113+
def sudo(chocolatey_mod):
114+
chocolatey_mod.install(name="sudo", version="1.1.2")
115115
yield
116-
chocolatey_mod.uninstall(name="everything", force=True)
116+
chocolatey_mod.uninstall(name="sudo", force=True)
117117

118118

119119
def test_installed_latest(clean, chocolatey, chocolatey_mod):
@@ -129,12 +129,10 @@ def test_installed_version(clean, chocolatey, chocolatey_mod):
129129
assert result["vim"]["installed"][0] == "9.0.1672"
130130

131131

132-
@pytest.mark.skipif(True, reason="Timing out, skipping for now")
133-
def test_installed_version_existing_capitalization(
134-
everything, chocolatey, chocolatey_mod
135-
):
136-
result = chocolatey.installed(name="everything", version="1.4.11026")
137-
expected_changes = {"Everything": {"new": ["1.4.11026"], "old": ["1.4.11024"]}}
132+
# @pytest.mark.skipif(True, reason="Timing out, skipping for now")
133+
def test_installed_version_existing_capitalization(sudo, chocolatey, chocolatey_mod):
134+
result = chocolatey.installed(name="sudo", version="1.1.3")
135+
expected_changes = {"Sudo": {"new": ["1.1.3"], "old": ["1.1.2"]}}
138136
assert result["changes"] == expected_changes
139137

140138

0 commit comments

Comments
 (0)