Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pytest-ansible for
openSUSE:Factory checked in at 2025-07-01 11:34:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-ansible (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-ansible.new.7067 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-ansible"
Tue Jul 1 11:34:34 2025 rev:17 rq:1289291 version:25.6.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pytest-ansible/python-pytest-ansible.changes
2025-06-30 14:02:13.605017415 +0200
+++
/work/SRC/openSUSE:Factory/.python-pytest-ansible.new.7067/python-pytest-ansible.changes
2025-07-01 11:35:44.517259019 +0200
@@ -1,0 +2,9 @@
+Mon Jun 30 13:30:21 UTC 2025 - Johannes Kastl
<[email protected]>
+
+- Update to version 25.6.1:
+ * Isolate testing from user or system level ansible config (#472)
+ * Add typing-extensions as a runtime dependency (#471)
+ * Bump the dependencies group in /.config with 6 updates (#469)
+ * Add MOLECULE_OPTS support to MoleculeScenario (#457)
+
+-------------------------------------------------------------------
Old:
----
pytest-ansible-25.6.0.obscpio
New:
----
pytest-ansible-25.6.1.obscpio
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-ansible.spec ++++++
--- /var/tmp/diff_new_pack.ofenyq/_old 2025-07-01 11:35:45.229288761 +0200
+++ /var/tmp/diff_new_pack.ofenyq/_new 2025-07-01 11:35:45.229288761 +0200
@@ -44,7 +44,7 @@
%endif
Name: python-pytest-ansible
-Version: 25.6.0
+Version: 25.6.1
Release: 0
Summary: Plugin for pytest to simplify calling ansible modules from
tests or fixtures
License: MIT
@@ -65,6 +65,7 @@
BuildRequires: fdupes
Requires: %{python_for_dependencies}-packaging
Requires: %{python_for_dependencies}-pytest >= 6
+Requires: %{python_for_dependencies}-typing_extensions
Requires: ansible-core > 2.14
Requires: python-ansible-compat >= 4.1.11
Suggests: %{python_for_dependencies}-attrs == 22.2.0
++++++ _service ++++++
--- /var/tmp/diff_new_pack.ofenyq/_old 2025-07-01 11:35:45.257289931 +0200
+++ /var/tmp/diff_new_pack.ofenyq/_new 2025-07-01 11:35:45.261290097 +0200
@@ -2,7 +2,7 @@
<service name="obs_scm" mode="manual">
<param
name="url">https://github.com/ansible-community/pytest-ansible</param>
<param name="scm">git</param>
- <param name="revision">v25.6.0</param>
+ <param name="revision">v25.6.1</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="changesgenerate">enable</param>
<param name="versionrewrite-pattern">v(.*)</param>
++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.ofenyq/_old 2025-07-01 11:35:45.281290933 +0200
+++ /var/tmp/diff_new_pack.ofenyq/_new 2025-07-01 11:35:45.285291100 +0200
@@ -1,6 +1,6 @@
<servicedata>
<service name="tar_scm">
<param
name="url">https://github.com/ansible-community/pytest-ansible</param>
- <param
name="changesrevision">bd688be970a06256f426fab736a7ee81f5242bc0</param></service></servicedata>
+ <param
name="changesrevision">6ee471c6dda11432e1e3054771e7ea34d7ac14ab</param></service></servicedata>
(No newline at EOF)
++++++ pytest-ansible-25.6.0.obscpio -> pytest-ansible-25.6.1.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.6.0/.config/constraints.txt
new/pytest-ansible-25.6.1/.config/constraints.txt
--- old/pytest-ansible-25.6.0/.config/constraints.txt 2025-06-26
18:06:02.000000000 +0200
+++ new/pytest-ansible-25.6.1/.config/constraints.txt 2025-06-30
12:58:57.000000000 +0200
@@ -4,9 +4,9 @@
astroid==3.3.10 # via pylint
attrs==25.3.0 # via jsonschema, referencing
babel==2.17.0 # via mkdocs-material
-backrefs==5.8 # via mkdocs-material
+backrefs==5.9 # via mkdocs-material
beautifulsoup4==4.13.4 # via linkchecker, mkdocs-htmlproofer-plugin
-bracex==2.5.post1 # via wcmatch
+bracex==2.6 # via wcmatch
cachetools==6.1.0 # via tox
cairocffi==1.7.1 # via cairosvg
cairosvg==2.7.1 # via mkdocs-ansible
@@ -45,15 +45,15 @@
jsonschema-specifications==2025.4.1 # via jsonschema
linkchecker==10.5.0 # via mkdocs-ansible
markdown==3.8.2 # via markdown-include, mkdocs, mkdocs-autorefs,
mkdocs-htmlproofer-plugin, mkdocs-material, mkdocstrings, pymdown-extensions
-markdown-exec==1.10.3 # via mkdocs-ansible
+markdown-exec==1.11.0 # via mkdocs-ansible
markdown-include==0.8.1 # via mkdocs-ansible
markdown-it-py==3.0.0 # via rich
markupsafe==3.0.2 # via jinja2, mkdocs, mkdocs-autorefs, mkdocstrings
mccabe==0.7.0 # via pylint
mdurl==0.1.2 # via markdown-it-py
mergedeep==1.3.4 # via mkdocs, mkdocs-get-deps
-mkdocs==1.6.1 # via mkdocs-ansible, mkdocs-autorefs,
mkdocs-gen-files, mkdocs-htmlproofer-plugin, mkdocs-macros-plugin,
mkdocs-material, mkdocs-minify-plugin, mkdocs-monorepo-plugin, mkdocstrings
-mkdocs-ansible==25.2.0 # via pytest-ansible (pyproject.toml)
+mkdocs==1.6.1 # via mkdocs-ansible, mkdocs-autorefs,
mkdocs-gen-files, mkdocs-htmlproofer-plugin, mkdocs-macros-plugin,
mkdocs-material, mkdocs-minify-plugin, mkdocstrings
+mkdocs-ansible==25.5.0 # via pytest-ansible (pyproject.toml)
mkdocs-autorefs==1.4.2 # via mkdocstrings, mkdocstrings-python
mkdocs-gen-files==0.5.0 # via mkdocs-ansible
mkdocs-get-deps==0.2.0 # via mkdocs
@@ -62,7 +62,6 @@
mkdocs-material==9.6.14 # via mkdocs-ansible
mkdocs-material-extensions==1.3.1 # via mkdocs-ansible, mkdocs-material
mkdocs-minify-plugin==0.8.0 # via mkdocs-ansible
-mkdocs-monorepo-plugin==1.1.2 # via mkdocs-ansible
mkdocstrings==0.29.1 # via mkdocs-ansible, mkdocstrings-python
mkdocstrings-python==1.16.12 # via mkdocs-ansible
molecule==25.6.0 # via pytest-ansible (pyproject.toml)
@@ -71,14 +70,14 @@
nodeenv==1.9.1 # via pre-commit
packaging==25.0 # via ansible-compat, ansible-core, mkdocs,
mkdocs-macros-plugin, molecule, pyproject-api, pytest, tox, pytest-ansible
(pyproject.toml)
paginate==0.5.7 # via mkdocs-material
-pathspec==0.12.1 # via mkdocs, mkdocs-macros-plugin
+pathspec==0.12.1 # via mkdocs, mkdocs-macros-plugin, mypy
pillow==11.2.1 # via cairosvg, mkdocs-ansible
platformdirs==4.3.8 # via mkdocs-get-deps, pylint, tox, virtualenv
pluggy==1.6.0 # via molecule, pytest, tox
pre-commit==4.2.0 # via pytest-ansible (pyproject.toml)
pycparser==2.22 # via cffi
pydoclint==0.6.6 # via pytest-ansible (pyproject.toml)
-pygments==2.19.2 # via mkdocs-material, rich
+pygments==2.19.2 # via mkdocs-material, pytest, rich
pylint==3.3.7 # via pytest-ansible (pyproject.toml)
pymdown-extensions==10.16 # via markdown-exec, mkdocs-ansible,
mkdocs-material, mkdocstrings
pyproject-api==1.9.1 # via tox
@@ -87,20 +86,18 @@
pytest-plus==0.8.1 # via pytest-ansible (pyproject.toml)
pytest-xdist==3.7.0 # via pytest-ansible (pyproject.toml)
python-dateutil==2.9.0.post0 # via ghp-import, mkdocs-macros-plugin
-python-slugify==8.0.4 # via mkdocs-monorepo-plugin
pyyaml==6.0.2 # via ansible-compat, ansible-core, mkdocs,
mkdocs-get-deps, mkdocs-macros-plugin, molecule, pre-commit,
pymdown-extensions, pyyaml-env-tag
pyyaml-env-tag==1.1 # via mkdocs
referencing==0.36.2 # via jsonschema, jsonschema-specifications
requests==2.32.4 # via linkchecker, mkdocs-htmlproofer-plugin,
mkdocs-material
rich==14.0.0 # via enrich, molecule
rpds-py==0.25.1 # via jsonschema, referencing
-ruff==0.12.0 # via pytest-ansible (pyproject.toml)
+ruff==0.12.1 # via pytest-ansible (pyproject.toml)
six==1.17.0 # via python-dateutil
soupsieve==2.7 # via beautifulsoup4
subprocess-tee==0.4.2 # via ansible-compat
super-collections==0.5.3 # via mkdocs-macros-plugin
termcolor==3.1.0 # via mkdocs-macros-plugin
-text-unidecode==1.3 # via python-slugify
tinycss2==1.4.0 # via cairosvg, cssselect2
toml-sort==0.24.2 # via pytest-ansible (pyproject.toml)
tomli==2.2.1 # via coverage, mypy, pydoclint, pylint,
pyproject-api, pytest, tox
@@ -110,7 +107,7 @@
urllib3==2.5.0 # via requests
virtualenv==20.31.2 # via pre-commit, tox
watchdog==6.0.0 # via mkdocs
-wcmatch==10.0 # via molecule
+wcmatch==10.1 # via molecule
webencodings==0.5.1 # via cssselect2, tinycss2
# The following packages were excluded from the output:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.6.0/.config/dictionary.txt
new/pytest-ansible-25.6.1/.config/dictionary.txt
--- old/pytest-ansible-25.6.0/.config/dictionary.txt 2025-06-26
18:06:02.000000000 +0200
+++ new/pytest-ansible-25.6.1/.config/dictionary.txt 2025-06-30
12:58:57.000000000 +0200
@@ -3,6 +3,7 @@
addoption
autouse
barroso
+capfd
caplog
fixturedefs
fixtureinfo
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.6.0/.config/pydoclint-baseline.txt
new/pytest-ansible-25.6.1/.config/pydoclint-baseline.txt
--- old/pytest-ansible-25.6.0/.config/pydoclint-baseline.txt 2025-06-26
18:06:02.000000000 +0200
+++ new/pytest-ansible-25.6.1/.config/pydoclint-baseline.txt 2025-06-30
12:58:57.000000000 +0200
@@ -235,10 +235,6 @@
DOC103: Function `option`: Docstring arguments are different from function
arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [pytester: ,
request: ].
DOC201: Function `option` does not have a return section in docstring
--------------------
-tests/integration/test_molecule.py
- DOC101: Function `test_molecule_fixture`: Docstring contains fewer
arguments than in function signature.
- DOC103: Function `test_molecule_fixture`: Docstring arguments are
different from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring:
[molecule_scenario: MoleculeScenario].
---------------------
tests/test_adhoc.py
DOC101: Function `test_contacted_with_params`: Docstring contains fewer
arguments than in function signature.
DOC106: Function `test_contacted_with_params`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.6.0/.config/requirements.in
new/pytest-ansible-25.6.1/.config/requirements.in
--- old/pytest-ansible-25.6.0/.config/requirements.in 2025-06-26
18:06:02.000000000 +0200
+++ new/pytest-ansible-25.6.1/.config/requirements.in 2025-06-30
12:58:57.000000000 +0200
@@ -2,3 +2,4 @@
ansible-compat>=4.1.11
pytest>=6
packaging
+typing-extensions
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.6.0/.git/HEAD
new/pytest-ansible-25.6.1/.git/HEAD
--- old/pytest-ansible-25.6.0/.git/HEAD 2025-06-26 18:06:02.000000000 +0200
+++ new/pytest-ansible-25.6.1/.git/HEAD 2025-06-30 12:58:57.000000000 +0200
@@ -1 +1 @@
-bd688be970a06256f426fab736a7ee81f5242bc0
+6ee471c6dda11432e1e3054771e7ea34d7ac14ab
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.6.0/.git/ORIG_HEAD
new/pytest-ansible-25.6.1/.git/ORIG_HEAD
--- old/pytest-ansible-25.6.0/.git/ORIG_HEAD 2025-06-26 18:06:02.000000000
+0200
+++ new/pytest-ansible-25.6.1/.git/ORIG_HEAD 2025-06-30 12:58:57.000000000
+0200
@@ -1 +1 @@
-bd688be970a06256f426fab736a7ee81f5242bc0
+6ee471c6dda11432e1e3054771e7ea34d7ac14ab
Binary files old/pytest-ansible-25.6.0/.git/index and
new/pytest-ansible-25.6.1/.git/index differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.6.0/.git/logs/HEAD
new/pytest-ansible-25.6.1/.git/logs/HEAD
--- old/pytest-ansible-25.6.0/.git/logs/HEAD 2025-06-26 18:06:02.000000000
+0200
+++ new/pytest-ansible-25.6.1/.git/logs/HEAD 2025-06-30 12:58:57.000000000
+0200
@@ -1,2 +1,2 @@
-0000000000000000000000000000000000000000
a08dddbf83825bad218a9eb26e6c53a701da5c6c kastl <[email protected]>
1751271067 +0200 clone: from https://github.com/ansible-community/pytest-ansible
-a08dddbf83825bad218a9eb26e6c53a701da5c6c
bd688be970a06256f426fab736a7ee81f5242bc0 kastl <[email protected]>
1751271067 +0200 checkout: moving from main to v25.6.0
+0000000000000000000000000000000000000000
cd3a4fa0c779554b53df7745097cee5101f030ca kastl <[email protected]>
1751290220 +0200 clone: from https://github.com/ansible-community/pytest-ansible
+cd3a4fa0c779554b53df7745097cee5101f030ca
6ee471c6dda11432e1e3054771e7ea34d7ac14ab kastl <[email protected]>
1751290221 +0200 checkout: moving from main to v25.6.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.6.0/.git/logs/refs/heads/main
new/pytest-ansible-25.6.1/.git/logs/refs/heads/main
--- old/pytest-ansible-25.6.0/.git/logs/refs/heads/main 2025-06-26
18:06:02.000000000 +0200
+++ new/pytest-ansible-25.6.1/.git/logs/refs/heads/main 2025-06-30
12:58:57.000000000 +0200
@@ -1 +1 @@
-0000000000000000000000000000000000000000
a08dddbf83825bad218a9eb26e6c53a701da5c6c kastl <[email protected]>
1751271067 +0200 clone: from https://github.com/ansible-community/pytest-ansible
+0000000000000000000000000000000000000000
cd3a4fa0c779554b53df7745097cee5101f030ca kastl <[email protected]>
1751290220 +0200 clone: from https://github.com/ansible-community/pytest-ansible
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-ansible-25.6.0/.git/logs/refs/remotes/origin/HEAD
new/pytest-ansible-25.6.1/.git/logs/refs/remotes/origin/HEAD
--- old/pytest-ansible-25.6.0/.git/logs/refs/remotes/origin/HEAD
2025-06-26 18:06:02.000000000 +0200
+++ new/pytest-ansible-25.6.1/.git/logs/refs/remotes/origin/HEAD
2025-06-30 12:58:57.000000000 +0200
@@ -1 +1 @@
-0000000000000000000000000000000000000000
a08dddbf83825bad218a9eb26e6c53a701da5c6c kastl <[email protected]>
1751271067 +0200 clone: from https://github.com/ansible-community/pytest-ansible
+0000000000000000000000000000000000000000
cd3a4fa0c779554b53df7745097cee5101f030ca kastl <[email protected]>
1751290220 +0200 clone: from https://github.com/ansible-community/pytest-ansible
Binary files
old/pytest-ansible-25.6.0/.git/objects/pack/pack-306d131a4893f464fcb1ae3ff9114e0636b1f8c4.idx
and
new/pytest-ansible-25.6.1/.git/objects/pack/pack-306d131a4893f464fcb1ae3ff9114e0636b1f8c4.idx
differ
Binary files
old/pytest-ansible-25.6.0/.git/objects/pack/pack-306d131a4893f464fcb1ae3ff9114e0636b1f8c4.pack
and
new/pytest-ansible-25.6.1/.git/objects/pack/pack-306d131a4893f464fcb1ae3ff9114e0636b1f8c4.pack
differ
Binary files
old/pytest-ansible-25.6.0/.git/objects/pack/pack-306d131a4893f464fcb1ae3ff9114e0636b1f8c4.rev
and
new/pytest-ansible-25.6.1/.git/objects/pack/pack-306d131a4893f464fcb1ae3ff9114e0636b1f8c4.rev
differ
Binary files
old/pytest-ansible-25.6.0/.git/objects/pack/pack-d19acd31a852092172a24b7d5f6e90d2dd977791.idx
and
new/pytest-ansible-25.6.1/.git/objects/pack/pack-d19acd31a852092172a24b7d5f6e90d2dd977791.idx
differ
Binary files
old/pytest-ansible-25.6.0/.git/objects/pack/pack-d19acd31a852092172a24b7d5f6e90d2dd977791.pack
and
new/pytest-ansible-25.6.1/.git/objects/pack/pack-d19acd31a852092172a24b7d5f6e90d2dd977791.pack
differ
Binary files
old/pytest-ansible-25.6.0/.git/objects/pack/pack-d19acd31a852092172a24b7d5f6e90d2dd977791.rev
and
new/pytest-ansible-25.6.1/.git/objects/pack/pack-d19acd31a852092172a24b7d5f6e90d2dd977791.rev
differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.6.0/.git/packed-refs
new/pytest-ansible-25.6.1/.git/packed-refs
--- old/pytest-ansible-25.6.0/.git/packed-refs 2025-06-26 18:06:02.000000000
+0200
+++ new/pytest-ansible-25.6.1/.git/packed-refs 2025-06-30 12:58:57.000000000
+0200
@@ -1,6 +1,7 @@
# pack-refs with: peeled fully-peeled sorted
64d8b204b589dd76babddd103f31047768871c7a refs/remotes/origin/coverage_used
-a08dddbf83825bad218a9eb26e6c53a701da5c6c refs/remotes/origin/main
+8ede04d19ae886027ea713c55f1a0b9e9491c3be refs/remotes/origin/fix/markers
+cd3a4fa0c779554b53df7745097cee5101f030ca refs/remotes/origin/main
15f680480c7bac9ef1694fc7334d8a42aa158c75 refs/remotes/origin/mkdocs
cbd13e8b0fde4e5efa9d240ac1cf065b357be0d1 refs/remotes/origin/pyproject-pytest
1bfd2277ea850f559d2a82c89ecf7046b658ee07 refs/remotes/origin/revert-159-master
@@ -42,6 +43,7 @@
46cf3143a157f1e443976053818fc2818fd482af refs/tags/v25.4.1
1466e469f5a88eef269ae0edf8c61307f6fbf97c refs/tags/v25.5.0
bd688be970a06256f426fab736a7ee81f5242bc0 refs/tags/v25.6.0
+6ee471c6dda11432e1e3054771e7ea34d7ac14ab refs/tags/v25.6.1
cfcb2520db3d18f220802e5adc62eee73891c891 refs/tags/v3.0.0
e03f575aa9334884c65c4ae3b82e383251e40a32 refs/tags/v3.1.0
f8ef52f46554cb4950a2cfa7ef5a2ce9d0865c65 refs/tags/v3.1.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.6.0/.git/refs/heads/main
new/pytest-ansible-25.6.1/.git/refs/heads/main
--- old/pytest-ansible-25.6.0/.git/refs/heads/main 2025-06-26
18:06:02.000000000 +0200
+++ new/pytest-ansible-25.6.1/.git/refs/heads/main 2025-06-30
12:58:57.000000000 +0200
@@ -1 +1 @@
-a08dddbf83825bad218a9eb26e6c53a701da5c6c
+cd3a4fa0c779554b53df7745097cee5101f030ca
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.6.0/.pre-commit-config.yaml
new/pytest-ansible-25.6.1/.pre-commit-config.yaml
--- old/pytest-ansible-25.6.0/.pre-commit-config.yaml 2025-06-26
18:06:02.000000000 +0200
+++ new/pytest-ansible-25.6.1/.pre-commit-config.yaml 2025-06-30
12:58:57.000000000 +0200
@@ -28,7 +28,7 @@
)$
- repo: https://github.com/rbubley/mirrors-prettier
- rev: v3.6.1
+ rev: v3.6.2
hooks:
- id: prettier
always_run: true
@@ -48,7 +48,7 @@
- id: tox-ini-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.11.12
+ rev: v0.12.1
hooks:
- id: ruff
args:
@@ -85,9 +85,10 @@
- pytest
- pyyaml
- setuptools
+ - typing_extensions
- repo: https://github.com/pre-commit/mirrors-mypy.git
- rev: v1.16.0
+ rev: v1.16.1
hooks:
- id: mypy
additional_dependencies:
@@ -96,6 +97,7 @@
- pytest
- types-pyyaml
- types-setuptools
+ - typing_extensions
# Override default pre-commit '--ignore-missing-imports'
args: [--strict]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.6.0/pyproject.toml
new/pytest-ansible-25.6.1/pyproject.toml
--- old/pytest-ansible-25.6.0/pyproject.toml 2025-06-26 18:06:02.000000000
+0200
+++ new/pytest-ansible-25.6.1/pyproject.toml 2025-06-30 12:58:57.000000000
+0200
@@ -326,7 +326,7 @@
"ignore:This process \\(pid=.*\\) is multi-threaded, use of fork\\(\\) may
lead to deadlocks in the child.:DeprecationWarning",
"ignore:AnsibleCollectionFinder has already been configured:UserWarning"
]
-junit_family = "legacy" # see https://docs.codecov.com/docs/test-analytics
+junit_family = "xunit2" # see https://docs.codecov.com/docs/test-analytics
markers = ["old", "unit", "requires_ansible_v2"]
testpaths = "tests"
tmp_path_retention_policy = "failed"
@@ -342,7 +342,8 @@
[tool.ruff.lint]
ignore = [
"COM812", # conflicts with ISC001 on format
- "ISC001" # conflicts with COM812 on format
+ "ISC001", # conflicts with COM812 on format
+ "PLC0415" # import should be at the top-level of a file
]
select = ["ALL"]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.6.0/src/pytest_ansible/molecule.py
new/pytest-ansible-25.6.1/src/pytest_ansible/molecule.py
--- old/pytest-ansible-25.6.0/src/pytest_ansible/molecule.py 2025-06-26
18:06:02.000000000 +0200
+++ new/pytest-ansible-25.6.1/src/pytest_ansible/molecule.py 2025-06-30
12:58:57.000000000 +0200
@@ -288,8 +288,16 @@
:returns: The completed process
"""
+ args = [sys.executable, "-m", "molecule", "test", "-s", self.name]
+
+ # We append the additional options to molecule call, allowing user to
+ # control how molecule is called by pytest-molecule
+ opts = os.environ.get("MOLECULE_OPTS")
+ if opts:
+ args.extend(shlex.split(opts))
+
return subprocess.run(
- args=[sys.executable, "-m", "molecule", "test", "-s", self.name],
+ args=args,
capture_output=False,
check=False,
cwd=self.parent_directory,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-ansible-25.6.0/tests/fixtures/collections/ansible_collections/company/product/extensions/molecule/default/converge.yml
new/pytest-ansible-25.6.1/tests/fixtures/collections/ansible_collections/company/product/extensions/molecule/default/converge.yml
---
old/pytest-ansible-25.6.0/tests/fixtures/collections/ansible_collections/company/product/extensions/molecule/default/converge.yml
2025-06-26 18:06:02.000000000 +0200
+++
new/pytest-ansible-25.6.1/tests/fixtures/collections/ansible_collections/company/product/extensions/molecule/default/converge.yml
2025-06-30 12:58:57.000000000 +0200
@@ -6,3 +6,8 @@
- name: Print out information
ansible.builtin.debug:
msg: "converge ran successfully"
+
+ - name: Print out information only when MOLECULE_OPTS is working correctly
+ when: var_set_from_molecule_opts is not undefined
+ ansible.builtin.debug:
+ msg: "MOLECULE_OPTS applied successfully"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-ansible-25.6.0/tests/fixtures/molecule/default/converge.yml
new/pytest-ansible-25.6.1/tests/fixtures/molecule/default/converge.yml
--- old/pytest-ansible-25.6.0/tests/fixtures/molecule/default/converge.yml
2025-06-26 18:06:02.000000000 +0200
+++ new/pytest-ansible-25.6.1/tests/fixtures/molecule/default/converge.yml
2025-06-30 12:58:57.000000000 +0200
@@ -6,3 +6,8 @@
- name: Print out information
ansible.builtin.debug:
msg: "converge ran successfully"
+
+ - name: Print out information only when MOLECULE_OPTS is working correctly
+ when: var_set_from_molecule_opts is not undefined
+ ansible.builtin.debug:
+ msg: "MOLECULE_OPTS applied successfully"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-ansible-25.6.0/tests/integration/test_molecule.py
new/pytest-ansible-25.6.1/tests/integration/test_molecule.py
--- old/pytest-ansible-25.6.0/tests/integration/test_molecule.py
2025-06-26 18:06:02.000000000 +0200
+++ new/pytest-ansible-25.6.1/tests/integration/test_molecule.py
2025-06-30 12:58:57.000000000 +0200
@@ -12,6 +12,8 @@
if TYPE_CHECKING:
+ from _pytest.capture import CaptureFixture
+
from pytest_ansible.molecule import MoleculeScenario
@@ -70,8 +72,25 @@
def test_molecule_fixture(molecule_scenario: MoleculeScenario) -> None:
"""Test the scenario fixture.
- :param molecule_scenario: One scenario
+ Args:
+ molecule_scenario: One scenario
+ """
+ assert molecule_scenario.test_id in ["fixtures-default",
"extensions-default"]
+ assert molecule_scenario.name == "default"
+ molecule_scenario.test()
+
+
+def test_molecule_fixture_with_molecule_opts(
+ molecule_scenario: MoleculeScenario, capfd: CaptureFixture[str]
+) -> None:
+ """Test the scenario fixture with MOLECULE_OPTS set.
+
+ Args:
+ molecule_scenario: One scenario
+ capfd: Text capturing of writes to file descriptors
"""
assert molecule_scenario.test_id in ["fixtures-default",
"extensions-default"]
assert molecule_scenario.name == "default"
+ os.environ["MOLECULE_OPTS"] = "-- --extra-vars
var_set_from_molecule_opts=a-value"
molecule_scenario.test()
+ assert "MOLECULE_OPTS applied successfully" in capfd.readouterr().out
++++++ pytest-ansible.obsinfo ++++++
--- /var/tmp/diff_new_pack.ofenyq/_old 2025-07-01 11:35:45.445297784 +0200
+++ /var/tmp/diff_new_pack.ofenyq/_new 2025-07-01 11:35:45.449297950 +0200
@@ -1,5 +1,5 @@
name: pytest-ansible
-version: 25.6.0
-mtime: 1750953962
-commit: bd688be970a06256f426fab736a7ee81f5242bc0
+version: 25.6.1
+mtime: 1751281137
+commit: 6ee471c6dda11432e1e3054771e7ea34d7ac14ab