Skip to content

Commit 1e3557a

Browse files
authored
Fix test verifying collection installation and upgrade (#408)
1 parent 42b5d96 commit 1e3557a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

test/test_runtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ def test_require_collection_install(runtime_tmp: Runtime) -> None:
458458
runtime_tmp.require_collection(name="ansible.posix", version="1.5.4", install=True)
459459
runtime_tmp.load_collections()
460460
collection = runtime_tmp.collections["ansible.posix"]
461-
assert collection.version == "1.5.4"
461+
assert Version(collection.version) >= Version("1.5.4")
462462

463463

464464
@pytest.mark.parametrize(

tox.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,20 @@ envlist =
1010
py39-ansible215
1111
py310-ansible214
1212
py310-ansible215
13+
py310-ansible216
14+
py310-ansible217
1315
py311-ansible214
1416
py311-ansible215
17+
py311-ansible216
18+
py311-ansible217
1519
py312-ansible216
20+
py312-ansible217
1621

1722
isolated_build = true
1823
skip_missing_interpreters = True
1924
requires =
2025
tox >= 4.6.3
26+
tox-extra >= 2.0.1
2127
setuptools >= 65.3.0 # editable installs
2228

2329
[testenv]

0 commit comments

Comments
 (0)