diff options
author | Petr Viktorin <pviktori@redhat.com> | 2014-12-16 14:45:37 +0100 |
---|---|---|
committer | Tomas Babej <tbabej@redhat.com> | 2015-01-14 11:40:28 +0100 |
commit | 61c4ecccc1df222b153236518c9be0ac3091f94a (patch) | |
tree | f8d222fee1c359c1e7403ab914ed7f619139e721 /ipatests/test_ipalib/test_frontend.py | |
parent | 10fe918acd8f7428588f2dff52f64070a9328c29 (diff) | |
download | freeipa-61c4ecccc1df222b153236518c9be0ac3091f94a.tar.gz freeipa-61c4ecccc1df222b153236518c9be0ac3091f94a.tar.xz freeipa-61c4ecccc1df222b153236518c9be0ac3091f94a.zip |
Run pylint on tests
Drop support for pylint < 1.0
Enable ignoring unknown attributes on modules (both nose and pytest
use advanced techniques, support for which only made it to pylint
recently)
Fix some bugs revealed by pylint
Do minor refactoring or add pylint:disable directives where the
linter complains.
Reviewed-By: Tomas Babej <tbabej@redhat.com>
Diffstat (limited to 'ipatests/test_ipalib/test_frontend.py')
-rw-r--r-- | ipatests/test_ipalib/test_frontend.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ipatests/test_ipalib/test_frontend.py b/ipatests/test_ipalib/test_frontend.py index c77783655..b4fbf3ea3 100644 --- a/ipatests/test_ipalib/test_frontend.py +++ b/ipatests/test_ipalib/test_frontend.py @@ -21,8 +21,11 @@ Test the `ipalib.frontend` module. """ -from ipatests.util import raises, getitem, no_set, no_del, read_only -from ipatests.util import check_TypeError, ClassChecker, create_test_api +# FIXME: Pylint errors +# pylint: disable=no-member + +from ipatests.util import raises, read_only +from ipatests.util import ClassChecker, create_test_api from ipatests.util import assert_equal from ipalib.constants import TYPE_ERROR from ipalib.base import NameSpace @@ -444,7 +447,7 @@ class test_Command(ClassChecker): o = my_cmd() o.set_api(api) o.finalize() - e = o(**kw) + e = o(**kw) # pylint: disable=not-callable assert type(e) is dict assert 'result' in e assert 'option2' in e['result'] |