Felix Fontein
236b9c0e04
Sort imports with ruff check --fix ( #11400 )
...
Sort imports with ruff check --fix.
2026-01-09 07:40:58 +01:00
Felix Fontein
340ff8586d
Reformat everything.
2025-11-01 13:46:53 +01:00
Felix Fontein
74c2c804e5
Cleanup: use super() instead of super(__class__, self) ( #11016 )
...
* Address UP008: Use super() instead of super(__class__, self).
* Linting.
2025-10-30 20:17:26 +01:00
Felix Fontein
74b6a0294a
Unit tests: clean up compat imports ( #10902 )
...
Clean up compat imports.
2025-10-11 10:03:37 +02: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
Felix Fontein
410cf72aec
Unit tests: replace mock and compat with code from community.internal_test_tools ( #9921 )
...
* Replace compat with equivalent from community.internal_test_tools.
* Replace mock with equivalent from community.internal_test_tools.
2025-03-22 14:12:56 +01: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
Felix Fontein
a1781d09dd
Unit tests: make set_module_args() a context manager, and remove copies of it in some tests ( #9838 )
...
Make set_module_args() a context manager, and remove copies of set_module_args().
Prepares for Data Tagging.
2025-03-07 07:21:03 +01:00
Ryan Cook
1a8f172186
Introduce bootc functionality ( #8606 )
...
* introduce bootc functionality
Signed-off-by: Ryan Cook <rcook@redhat.com >
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com >
* fix of test
Signed-off-by: Ryan Cook <rcook@redhat.com >
* switch stdout var
Signed-off-by: Ryan Cook <rcook@redhat.com >
* Feedback on NOTE format
Co-authored-by: Felix Fontein <felix@fontein.de >
* addition of trailing comma
Co-authored-by: Felix Fontein <felix@fontein.de >
* addition of trailing comma
Co-authored-by: Felix Fontein <felix@fontein.de >
* incorporating feedback from russoz
Signed-off-by: Ryan Cook <rcook@redhat.com >
* error in stdout
Signed-off-by: Ryan Cook <rcook@redhat.com >
* proper rc checking and status
Signed-off-by: Ryan Cook <rcook@redhat.com >
* linting
Signed-off-by: Ryan Cook <rcook@redhat.com >
* Update version
Co-authored-by: Felix Fontein <felix@fontein.de >
---------
Signed-off-by: Ryan Cook <rcook@redhat.com >
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com >
Co-authored-by: Felix Fontein <felix@fontein.de >
2024-07-27 09:37:14 +02:00