From 1e3557a73a3452a3e05951a0b95627f5501dee8a Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Wed, 18 Sep 2024 16:38:29 +0100 Subject: [PATCH] Fix test verifying collection installation and upgrade (#408) --- test/test_runtime.py | 2 +- tox.ini | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/test/test_runtime.py b/test/test_runtime.py index 77b420d4..605dc028 100644 --- a/test/test_runtime.py +++ b/test/test_runtime.py @@ -458,7 +458,7 @@ def test_require_collection_install(runtime_tmp: Runtime) -> None: runtime_tmp.require_collection(name="ansible.posix", version="1.5.4", install=True) runtime_tmp.load_collections() collection = runtime_tmp.collections["ansible.posix"] - assert collection.version == "1.5.4" + assert Version(collection.version) >= Version("1.5.4") @pytest.mark.parametrize( diff --git a/tox.ini b/tox.ini index 06f505d0..25403400 100644 --- a/tox.ini +++ b/tox.ini @@ -10,14 +10,20 @@ envlist = py39-ansible215 py310-ansible214 py310-ansible215 + py310-ansible216 + py310-ansible217 py311-ansible214 py311-ansible215 + py311-ansible216 + py311-ansible217 py312-ansible216 + py312-ansible217 isolated_build = true skip_missing_interpreters = True requires = tox >= 4.6.3 + tox-extra >= 2.0.1 setuptools >= 65.3.0 # editable installs [testenv]