[Freeipa-devel] [PATCH] 0021 Add CLI tests

Petr Viktorin pviktori at redhat.com
Wed Mar 7 12:52:17 UTC 2012


Most of the tests we have check if the server does the right thing with 
XML-RPC calls. How the commandline is converted to command arguments, 
including interactive prompting, is untested.
This patch adds some tests in this area. To do that I had to break up 
cli.run into more manageable pieces, and initialize the CLI plugins in 
test mode.

Also I added nose's --nocapture option to the make-test script. With 
this it's possible to use pdb.set_trace() to drop into a debugger while 
running the tests.


I went ahead and added a test for ticket 2484, fixed in Martin's patch 
231 (Ignore case in yes/no prompts).

-- 
Petr³
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pviktori-0021-Add-CLI-parsing-tests.patch
Type: text/x-patch
Size: 10318 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20120307/62864b55/attachment.bin>


More information about the Freeipa-devel mailing list