diff options
author | Petr Viktorin <pviktori@redhat.com> | 2016-04-29 13:18:18 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-05-05 16:42:46 +0200 |
commit | f753ad322dfdd81907a309827bddfcb1e47917a7 (patch) | |
tree | 5dc7a14ee389f463931e6a5d70c46292d6a91b8e | |
parent | b87a825d7448f87ea1f94da5fc9d6b211cd1334f (diff) | |
download | freeipa-f753ad322dfdd81907a309827bddfcb1e47917a7.tar.gz freeipa-f753ad322dfdd81907a309827bddfcb1e47917a7.tar.xz freeipa-f753ad322dfdd81907a309827bddfcb1e47917a7.zip |
test_xmlrpc: Use absolute imports
In Python 3, a module from the current package can be imported
either with the absolute name or by using an explicit relative import.
Part of the work for https://fedorahosted.org/freeipa/ticket/4985
Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Petr Spacek <pspacek@redhat.com>
-rw-r--r-- | ipatests/test_xmlrpc/test_add_remove_cert_cmd.py | 10 | ||||
-rw-r--r-- | ipatests/test_xmlrpc/test_user_plugin.py | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/ipatests/test_xmlrpc/test_add_remove_cert_cmd.py b/ipatests/test_xmlrpc/test_add_remove_cert_cmd.py index 122921d79..0810182b3 100644 --- a/ipatests/test_xmlrpc/test_add_remove_cert_cmd.py +++ b/ipatests/test_xmlrpc/test_add_remove_cert_cmd.py @@ -4,13 +4,13 @@ import base64 -from ipalib import api, errors +import pytest -from ipatests.util import assert_deepequal, raises -from xmlrpc_test import XMLRPC_test +from ipalib import api, errors from ipapython.dn import DN -from testcert import get_testcert -import pytest +from ipatests.util import assert_deepequal, raises +from ipatests.test_xmlrpc.xmlrpc_test import XMLRPC_test +from ipatests.test_xmlrpc.testcert import get_testcert @pytest.mark.tier1 diff --git a/ipatests/test_xmlrpc/test_user_plugin.py b/ipatests/test_xmlrpc/test_user_plugin.py index a70b90a99..7c6d2ee53 100644 --- a/ipatests/test_xmlrpc/test_user_plugin.py +++ b/ipatests/test_xmlrpc/test_user_plugin.py @@ -33,7 +33,7 @@ from ipalib import api, errors from ipatests.test_xmlrpc import objectclasses from ipatests.util import ( assert_deepequal, assert_equal, assert_not_equal, raises) -from xmlrpc_test import ( +from ipatests.test_xmlrpc.xmlrpc_test import ( XMLRPC_test, fuzzy_digits, fuzzy_uuid, fuzzy_password, fuzzy_string, fuzzy_dergeneralizedtime, add_sid, add_oc, raises_exact) from ipapython.dn import DN |