diff options
author | Petr Viktorin <pviktori@redhat.com> | 2012-03-13 07:10:52 -0400 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-03-28 15:25:33 +0200 |
commit | 96c5551aceb01f524302714b40547ae5050f675e (patch) | |
tree | 4eea2224c72d17e92fb730f1042d0724531f8eb3 /ipalib/__init__.py | |
parent | a2299070c86ae049fb5702a72567a820fe6eaa28 (diff) | |
download | freeipa-96c5551aceb01f524302714b40547ae5050f675e.tar.gz freeipa-96c5551aceb01f524302714b40547ae5050f675e.tar.xz freeipa-96c5551aceb01f524302714b40547ae5050f675e.zip |
Add CLI parsing tests
These test that command lines are parsed to correct Command arguments.
Includes some tests for interactive prompts.
To make this possible cli.run is broken up into several pieces.
Diffstat (limited to 'ipalib/__init__.py')
-rw-r--r-- | ipalib/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ipalib/__init__.py b/ipalib/__init__.py index 1efeeab4a..dd861a826 100644 --- a/ipalib/__init__.py +++ b/ipalib/__init__.py @@ -916,5 +916,8 @@ def create_api(mode='dummy'): api = create_api(mode=None) if os.environ.get('IPA_UNIT_TEST_MODE', None) == 'cli_test': + from cli import cli_plugins + for klass in cli_plugins: + api.register(klass) api.bootstrap(context='cli', in_server=False, in_tree=True) api.finalize() |