magic-wormhole/src/wormhole/test
Brian Warner d331c51c03 change completion API
* InputHelper returns full words, not just suffixes. I liked the fact that
  suffixes made it impossible to violate the "all matches will start with
  your prefix" invariant, but in practice it was fiddly to work with.
* add ih.when_wordlist_is_available(), so the frontend can block (after
  claiming the nameplate) until it can return a complete wordlist to
  readline. This helps the user experience, because readline wasn't really
  built to work with completions that change over time
* make the Wordlist responsible for appending hyphens to all non-final word
  completions. InputHelper remains responsible for hyphens on nameplates.
  This makes the frontend simpler, but I may change it again in the future if
  it helps non-readline GUI frontends.
* CodeInputter: after claiming, wait for the wordlist rather than returning
  an empty list
* PGPWordList: change to match

This has the unfortunate side-effect that e.g. typing "3-yucatan-tu TAB"
shows you completions that include the entire phrase: "3-yucatan-tumor
3-yucatan-tunnel", rather than only mentioning the final word. I'd like to
fix this eventually.
2017-04-06 12:22:45 -07:00
..
__init__.py unsplit tests step 1: move files 2016-04-20 18:44:33 -07:00
common.py CLI: refactor to make testing easier 2016-07-14 22:34:10 -06:00
run_trial.py test/run_trial.py: protect run() with __name__ 2017-02-22 18:03:33 -08:00
test_args.py Add --appid to override the APPID, for subprocess-based wrappers. 2016-12-22 15:44:13 -05:00
test_cli.py rewrite welcome handler 2017-04-06 12:22:45 -07:00
test_database.py db: add v2->v3 upgrader 2016-06-24 16:19:39 -07:00
test_hkdf.py added unicode_literals import to all apropriate modules 2016-06-04 12:42:59 -07:00
test_machines.py change completion API 2017-04-06 12:22:45 -07:00
test_rlcompleter.py change completion API 2017-04-06 12:22:45 -07:00
test_scripts.py better py2/py3 fix, use locale of C.UTF-8 or en_US.UTF-8 2017-04-06 12:22:45 -07:00
test_server.py server: forbid reclaiming previously-closed nameplates 2016-12-25 20:09:55 -05:00
test_ssh.py update tests 2016-08-15 17:36:55 -07:00
test_tor_manager.py rewrite Tor support (py2 only) 2017-01-15 22:39:03 -05:00
test_transit_server.py split Transit out of test_server.py 2016-12-24 17:44:40 -05:00
test_transit.py prioritize relay connections 2016-12-31 00:33:00 -05:00
test_util.py test_util: free-space can be a 'long' 2017-03-03 05:49:25 -08:00
test_wordlist.py change completion API 2017-04-06 12:22:45 -07:00
test_wormhole.py merge test_wormhole_new into test_wormhole 2017-04-06 12:22:45 -07:00
test_xfer_util.py add some basic tests, doesn't cover everything 2016-08-15 17:35:34 -07:00