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
9f87989e7f
Remove unnecessary test imports ( #5978 )
...
Remove unnecessary test imports.
2023-02-12 21:05:08 +01:00
Guillaume MARTINEZ
5fe0f57033
[Scaleway] Add module to manage function namespaces ( #5415 )
...
* [Scaleway] Add module to manage function namespaces
Signed-off-by: Lunik <lunik@tiwabbit.fr>
* rename short_descriptions
Signed-off-by: Lunik <lunik@tiwabbit.fr>
* handle changed verification on hashed secret values
Signed-off-by: Lunik <lunik@tiwabbit.fr>
* fix syntax for python 2.6
Signed-off-by: Lunik <lunik@tiwabbit.fr>
* fix missing argon2 in unittest
Signed-off-by: Lunik <lunik@tiwabbit.fr>
* fix missing value on description field
Signed-off-by: Lunik <lunik@tiwabbit.fr>
Signed-off-by: Lunik <lunik@tiwabbit.fr>
2022-11-02 20:11:04 +01:00
Felix Fontein
424d706f92
Fix more copyright lines, add more default copyright lines ( #5095 )
...
* Fix copyright lines.
* Add default copyright line.
2022-08-08 14:24:58 +02:00
Felix Fontein
1ab2a5f1bc
Add default license header to files which have no copyright or license header yet ( #5074 )
...
* Add default license header to files which have no copyright or license header yet.
* yml extension should have been xml...
2022-08-05 14:03:38 +02:00
Felix Fontein
123c7efe5e
Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt ( #5065 )
...
* Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt.
* Replace 'Copyright:' with 'Copyright'
sed -i 's|Copyright:\(.*\)|Copyright\1|' $(rg -l 'Copyright:')
Co-authored-by: Maxwell G <gotmax@e.email>
2022-08-05 12:28:29 +02:00
Abhijeet Kasurde
832dd55144
sanity: Add future boilerplate ( #573 )
...
* sanity: Add future boilerplate
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Module Utils
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Scripts
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* sanity: Add future boilerplate
* Tests
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* CI failure
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-06-24 21:50:36 +02:00
Felix Fontein
be191cce6c
Move modules and module_utils unit tests to correct place ( #81 )
...
* Move modules and module_utils unit tests to correct place.
* Update ignore.txt
* Fix imports.
* Fix typos.
* Fix more typos.
2020-03-31 10:42:38 +02:00