summaryrefslogtreecommitdiffstats
path: root/tests/test_ipalib/test_plugable.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-12-08 16:56:24 -0700
committerJason Gerard DeRose <jderose@redhat.com>2008-12-08 16:56:24 -0700
commit7e21ea5ad826e65da10d7a12917fd4d0d4f1874e (patch)
tree4c3cd50bd5fc6a7486535de8b10af1ee90ccc52a /tests/test_ipalib/test_plugable.py
parent4591057203e61a4ab304b8730ffede6560f74d4b (diff)
downloadfreeipa-7e21ea5ad826e65da10d7a12917fd4d0d4f1874e.tar.gz
freeipa-7e21ea5ad826e65da10d7a12917fd4d0d4f1874e.tar.xz
freeipa-7e21ea5ad826e65da10d7a12917fd4d0d4f1874e.zip
Fixed Warning messages about log dir in unit test
Diffstat (limited to 'tests/test_ipalib/test_plugable.py')
-rw-r--r--tests/test_ipalib/test_plugable.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_ipalib/test_plugable.py b/tests/test_ipalib/test_plugable.py
index ce0c79a97..6b3b3e6cf 100644
--- a/tests/test_ipalib/test_plugable.py
+++ b/tests/test_ipalib/test_plugable.py
@@ -23,7 +23,7 @@ Test the `ipalib.plugable` module.
from tests.util import raises, no_set, no_del, read_only
from tests.util import getitem, setitem, delitem
-from tests.util import ClassChecker, get_api
+from tests.util import ClassChecker, create_test_api
from ipalib import plugable, errors
@@ -860,6 +860,7 @@ class test_API(ClassChecker):
class NoProxy(plugable.Plugin):
__proxy__ = False
api = plugable.API(NoProxy)
+ api.env.mode = 'unit_test'
class plugin0(NoProxy):
pass
api.register(plugin0)
@@ -879,7 +880,7 @@ class test_API(ClassChecker):
"""
Test the `ipalib.plugable.API.bootstrap` method.
"""
- (o, home) = get_api()
+ (o, home) = create_test_api()
assert o.env._isdone('_bootstrap') is False
assert o.env._isdone('_finalize_core') is False
assert o.isdone('bootstrap') is False
@@ -895,7 +896,7 @@ class test_API(ClassChecker):
"""
Test the `ipalib.plugable.API.load_plugins` method.
"""
- (o, home) = get_api()
+ (o, home) = create_test_api()
assert o.isdone('bootstrap') is False
assert o.isdone('load_plugins') is False
o.load_plugins()