tahoe-lafs/src/allmydata/test/cli
Brian Warner 802cfc87fe CLI: allow dispatch functions to return Deferred
In addition, CLI functions are allowed to use sys.exit() instead of
always needing to return the exit code as an integer.

runner.py now knows about the blocking httplib calls in scripts/cli and
scripts/magic_folder, and uses deferToThread() to invoke them. Those
functions cannot return a Deferred: when rewrite them to use twisted.web
or treq, we'll remove this deferToThread call.

Option parsing was split out to a separate function for testing. We now
use twisted.internet.task.react() to start the reactor, which required
changing the way runner.py is tested.

closes ticket:2826
2016-09-09 15:52:42 -07:00
..
__init__.py test_cli_*: move files into test/cli/* 2016-08-03 19:10:53 -04:00
common.py move run_cli() up to test/common_util.py 2016-09-09 15:40:01 -07:00
test_backup.py CLITestMixin: move into common.py 2016-09-09 15:40:01 -07:00
test_check.py CLITestMixin: move into common.py 2016-09-09 15:40:01 -07:00
test_cli.py CLI: allow dispatch functions to return Deferred 2016-09-09 15:52:42 -07:00
test_cp.py consolidate skip_if_cannot_represent_filename() 2016-09-09 15:40:01 -07:00
test_create_alias.py CLITestMixin: move into common.py 2016-09-09 15:40:01 -07:00
test_create.py tests: use shared run_cli()/do_cli() 2016-09-09 15:41:00 -07:00
test_list.py CLITestMixin: move into common.py 2016-09-09 15:40:01 -07:00
test_magic_folder.py CLITestMixin: move into common.py 2016-09-09 15:40:01 -07:00
test_mv.py CLITestMixin: move into common.py 2016-09-09 15:40:01 -07:00
test_put.py consolidate skip_if_cannot_represent_filename() 2016-09-09 15:40:01 -07:00