summaryrefslogtreecommitdiffstats
path: root/ipatests/test_ipalib/test_cli.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2016-06-08 14:38:23 +0200
committerJan Cholasta <jcholast@redhat.com>2016-06-15 14:03:51 +0200
commit4128c565ea716625b8510a476222690f0297ab8c (patch)
tree6c74c2a0d69499bcf89216eb83508d5ebec986e2 /ipatests/test_ipalib/test_cli.py
parentbebdce89b6075f77beb36ce194b36ad4d7104ca3 (diff)
downloadfreeipa-4128c565ea716625b8510a476222690f0297ab8c.tar.gz
freeipa-4128c565ea716625b8510a476222690f0297ab8c.tar.xz
freeipa-4128c565ea716625b8510a476222690f0297ab8c.zip
plugable: initialize plugins on demand
Use a new API namespace class which does not initialize plugins until they are accessed. https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipatests/test_ipalib/test_cli.py')
-rw-r--r--ipatests/test_ipalib/test_cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipatests/test_ipalib/test_cli.py b/ipatests/test_ipalib/test_cli.py
index f03e155a7..c240b2b02 100644
--- a/ipatests/test_ipalib/test_cli.py
+++ b/ipatests/test_ipalib/test_cli.py
@@ -87,7 +87,7 @@ class DummyCommand(object):
class DummyAPI(object):
def __init__(self, cnt):
- self.__cmd = plugable.NameSpace(self.__cmd_iter(cnt))
+ self.__cmd = plugable.APINameSpace(self.__cmd_iter(cnt), DummyCommand)
def __get_cmd(self):
return self.__cmd