patchback[bot]
ac771079db
[PR #11636/1dfc4fed backport][stable-12] test: uthelper now generates one test function per test case ( #11641 )
...
test: uthelper now generates one test function per test case (#11636 )
(cherry picked from commit 1dfc4fed40 )
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com >
2026-03-22 11:05:28 +01:00
patchback[bot]
b769b0bc01
[PR #11400/236b9c0e backport][stable-12] Sort imports with ruff check --fix ( #11409 )
...
Sort imports with ruff check --fix (#11400 )
Sort imports with ruff check --fix.
(cherry picked from commit 236b9c0e04 )
Co-authored-by: Felix Fontein <felix@fontein.de >
2026-01-09 19:36:52 +01:00
patchback[bot]
303bac630a
[PR #11342/266d9d3f backport][stable-12] batch 2 - update Python idiom to 3.7 using pyupgrade ( #11345 )
...
batch 2 - update Python idiom to 3.7 using pyupgrade (#11342 )
* batch 2 - update Python idiom to 3.7 using pyupgrade
* Apply suggestions from code review
(cherry picked from commit 266d9d3fb0 )
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com >
2025-12-30 16:00:22 +01:00
patchback[bot]
6df72406c5
[PR #11122/2dfb46a4 backport][stable-12] remove ignore lines for Python 2 ( #11134 )
...
remove ignore lines for Python 2 (#11122 )
* remove ignore lines for Python 2
* use yield from
* add changelog frag
* Update changelogs/fragments/11122-yield-from-ignore.yml
---------
(cherry picked from commit 2dfb46a4a6 )
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com >
Co-authored-by: Felix Fontein <felix@fontein.de >
2025-11-12 21:36:26 +01:00
patchback[bot]
cc93dab0fd
[PR #11095/2b4333a0 backport][stable-12] Use raise from in plugins ( #11129 )
...
Use raise from in plugins (#11095 )
* Use raise from.
* Add changelog fragment.
(cherry picked from commit 2b4333a033 )
Co-authored-by: Felix Fontein <felix@fontein.de >
2025-11-12 21:00:39 +01:00
Felix Fontein
340ff8586d
Reformat everything.
2025-11-01 13:46:53 +01:00
Felix Fontein
0c5466de47
Cleanup: remove unicode prefix, remove explicit inheritance from object ( #11015 )
...
* Address UP025: remove unicode literals from strings.
* Address UP004: class inherits from 'object'.
2025-10-30 20:17:10 +01:00
Alexei Znamensky
e177d1e61a
unit tests (modules): use f-strings ( #10992 )
...
* unit tests (modules): use f-strings
* Apply suggestions from code review
2025-10-27 11:08:33 +13:00
Alexei Znamensky
32dd5f04c5
uthelper: make str and repr generic in base class ( #10985 )
...
* uthelper: make str and repr generic in base class
* Update tests/unit/plugins/modules/uthelper.py
2025-10-26 09:40:47 +01:00
Felix Fontein
8f8a0e1d7c
Fix __future__ imports, __metaclass__ = type, and remove explicit UTF-8 encoding statement for Python files ( #10886 )
...
* Adjust all __future__ imports:
for i in $(grep -REl "__future__.*absolute_import" plugins/ tests/); do
sed -e 's/from __future__ import .*/from __future__ import annotations/g' -i $i;
done
* Remove all UTF-8 encoding specifications for Python source files:
for i in $(grep -REl '[-][*]- coding: utf-8 -[*]-' plugins/ tests/); do
sed -e '/^# -\*- coding: utf-8 -\*-/d' -i $i;
done
* Remove __metaclass__ = type:
for i in $(grep -REl '__metaclass__ = type' plugins/ tests/); do
sed -e '/^__metaclass__ = type/d' -i $i;
done
2025-10-10 19:52:04 +02:00
Alexei Znamensky
13bd4b5d82
composer: fix command args as list rather than string ( #10669 )
2025-08-17 12:43:29 +02:00
Felix Fontein
8ab8010b6d
Use more unit test utils from community.internal_test_tools ( #9918 )
...
* Make conftest's patch_ansible_module use the context manager from .utils.
* Fix test dependencies.
* Use module mock utils from community.internal_test_tools.
* Use DataDictLoader from community.internal_test_tools.
* Use trust util from community.internal_test_tools.
2025-03-22 13:12:31 +01:00
Alexei Znamensky
8e324881a6
rename test helper ( #9736 )
...
* rename test helper
* update ignore lines
2025-02-15 18:26:25 +13:00