diff options
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/__init__.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ipalib/__init__.py b/ipalib/__init__.py index a6664f73b..5cc4c1214 100644 --- a/ipalib/__init__.py +++ b/ipalib/__init__.py @@ -35,13 +35,11 @@ from frontend import Command, Object, Method, Property, Application from ipa_types import Bool, Int, Unicode, Enum from frontend import Param, DefaultFrom -def get_standard_api(unit_test=False): - api = plugable.API( +def get_standard_api(): + return plugable.API( Command, Object, Method, Property, Application, Backend, Context, ) - if unit_test is True: - api.env.mode = 'unit_test' - return api + api = get_standard_api() |