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_integration/test_legacy_clients.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_integration/test_legacy_clients.py')
-rw-r--r-- | ipatests/test_integration/test_legacy_clients.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ipatests/test_integration/test_legacy_clients.py b/ipatests/test_integration/test_legacy_clients.py index 68285643a..8380e50dd 100644 --- a/ipatests/test_integration/test_legacy_clients.py +++ b/ipatests/test_integration/test_legacy_clients.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +# FIXME: Pylint errors +# pylint: disable=no-member + import os import re @@ -43,6 +46,10 @@ class BaseTestLegacyClient(object): '/etc/nsswitch.conf', paths.SSSD_CONF] + homedir_template = "/home/{domain}/{username}" + required_extra_roles = () + optional_extra_roles = () + # Actual test classes need to override these attributes to set the expected # values on the UID and GID results, since this varies with the usage of the # POSIX and non-POSIX ID ranges @@ -407,7 +414,6 @@ class BaseTestLegacyClientPosix(BaseTestLegacyClient, testuser_gid_regex = '10047' subdomain_testuser_uid_regex = '10142' subdomain_testuser_gid_regex = '10147' - homedir_template = "/home/{domain}/{username}" posix_trust = True def test_remove_trust_with_posix_attributes(self): @@ -421,7 +427,6 @@ class BaseTestLegacyClientNonPosix(BaseTestLegacyClient, testuser_gid_regex = '(?!10047)(\d+)' subdomain_testuser_uid_regex = '(?!10142)(\d+)' subdomain_testuser_gid_regex = '(?!10147)(\d+)' - homedir_template = '/home/{domain}/{username}' def test_remove_nonposix_trust(self): pass |