Stanislav Levin
b8480549c6
pylint: Fix useless-object-inheritance
...
https://pylint.pycqa.org/en/latest/user_guide/messages/refactor/useless-object-inheritance.html :
> Used when a class inherit from object, which under python3 is
implicit, hence can be safely removed from bases.
Fixes: https://pagure.io/freeipa/issue/9278
Signed-off-by: Stanislav Levin <slev@altlinux.org >
Reviewed-By: Stanislav Levin <slev@altlinux.org >
2023-01-10 08:30:58 +01:00
Stanislav Levin
5a00882eab
pylint: Fix useless-suppression
...
Cleanup up no longer used Pylint's disables where possible.
Fixes: https://pagure.io/freeipa/issue/9117
Signed-off-by: Stanislav Levin <slev@altlinux.org >
Reviewed-By: Rob Crittenden <rcritten@redhat.com >
2022-03-11 13:37:08 -05:00
Stanislav Levin
31a9eb3783
pylint: Fix deprecated-decorator
...
Pylint 2.9 introduced new checker:
> The decorator is marked as deprecated and will be removed in the
future.
- @abstractproperty has been deprecated since Python3.3 [0]
- @abstractclassmethod has been deprecated since Python3.3 [1]
[0]: https://docs.python.org/3/library/abc.html#abc.abstractproperty
[1]: https://docs.python.org/3/library/abc.html#abc.abstractclassmethod
Fixes: https://pagure.io/freeipa/issue/9117
Signed-off-by: Stanislav Levin <slev@altlinux.org >
Reviewed-By: Rob Crittenden <rcritten@redhat.com >
2022-03-11 13:37:08 -05:00
Stanislav Levin
292d686c0b
pytest: Migrate xunit-style setups to Pytest fixtures
...
Even though Pytest supports xunit style setups, unittest and nose
tests, this support is limited and may be dropped in the future
releases. Worst of all is that the mixing of various test
frameworks results in weird conflicts and of course, is not widely
tested.
This is a part of work to remove the mixing of test idioms in the
IPA's test suite:
1) replace xunit style
2) employ the fixtures' interdependencies
Related: https://pagure.io/freeipa/issue/7989
Signed-off-by: Stanislav Levin <slev@altlinux.org >
Reviewed-By: Christian Heimes <cheimes@redhat.com >
2020-02-12 18:08:32 +02:00
Thomas Woerner
3b8c38ec8b
ipatests/test_ipaserver/test_install/test_installer.py: Drop tempfile import
...
This is not needed anymore due to the removal of the DL0 test
See: https://pagure.io/freeipa/issue/7669
Signed-off-by: Thomas Woerner <twoerner@redhat.com >
Reviewed-By: Christian Heimes <cheimes@redhat.com >
2018-08-13 12:35:06 +02:00
Thomas Woerner
2a788f1a60
ipatests: Drop test_password_option_DL0
...
DL0 is not supported anymore therefore this test is failing.
See: https://pagure.io/freeipa/issue/7669
Signed-off-by: Thomas Woerner <twoerner@redhat.com >
Reviewed-By: Christian Heimes <cheimes@redhat.com >
2018-08-13 12:35:06 +02:00
Stanislav Laznicka
d473278621
ipatests: add installer framework testing
...
Reviewed-By: Rob Crittenden <rcritten@redhat.com >
Reviewed-By: Christian Heimes <cheimes@redhat.com >
Reviewed-By: Tibor Dudlak <tdudlak@redhat.com >
2018-07-19 08:42:33 +02:00