Skip to content

Commit

Permalink
Fix test verifying collection installation and upgrade (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Sep 18, 2024
1 parent 42b5d96 commit 1e3557a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
6 changes: 6 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 1e3557a

Please sign in to comment.