mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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.
This commit is contained in:
committed by
Martin Kosek
parent
a2299070c8
commit
96c5551ace
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user