cliff/cliff
Doug Hellmann 0a7157de64 make smart help formatter test deterministic
Set up the formatter to always use a width=80 so that the terminal width
of the developer's system does not cause the test to fail. Trying to
mock os.environ failed, but there is an arg to HelpFormatter to set the
width explicitly. Unfortunately, there is no way to do that through the
parser, so we have to replace the parser's formatter_class attribute
with a partial() that passes width to the original class.

Change-Id: I2ab035b5b188f1a028e1776ba9f09c71dc316c11
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-30 17:01:33 +00:00
..
formatters Add print_empty parameter 2016-11-21 21:08:24 +03:00
tests make smart help formatter test deterministic 2017-06-30 17:01:33 +00:00
__init__.py add setup.py and package directory 2012-04-20 09:52:55 -07:00
_argparse.py Ensure python standard argparse module is loaded 2017-05-20 02:16:34 +09:00
app.py Ensure python standard argparse module is loaded 2017-05-20 02:16:34 +09:00
columns.py Add Apache 2.0 license to source file 2016-10-10 13:43:09 +07:00
command.py add before and after hooks 2017-06-30 09:50:21 -04:00
commandmanager.py Merge "Fix command order" 2017-01-03 19:00:05 +00:00
complete.py add cmd_name argument to CompleteCommand 2017-05-25 18:38:58 -04:00
display.py Add Apache 2.0 license to source file 2016-10-10 13:43:09 +07:00
help.py pass the command name from HelpCommand 2017-06-29 22:29:01 -07:00
hooks.py add before and after hooks 2017-06-30 09:50:21 -04:00
interactive.py Adjust completenames tests for cmd2 0.7.3+ 2017-06-28 07:45:44 +02:00
lister.py Add Apache 2.0 license to source file 2016-10-10 13:43:09 +07:00
show.py Add Apache 2.0 license to source file 2016-10-10 13:43:09 +07:00
sphinxext.py sphinxext: Use 'argparse.description', 'argparse.epilog' 2017-06-08 11:39:43 +01:00
utils.py Fixes terminal_width on Windows 2016-02-10 15:06:53 +00:00