use entry points for completion plugins

This commit is contained in:
Doug Hellmann
2013-11-12 18:14:37 -05:00
parent 9b77b62a68
commit 1192cf679b
3 changed files with 23 additions and 10 deletions

View File

@@ -120,6 +120,7 @@ def test_complete_command_take_action():
sot, app, cmd_mgr = given_complete_command()
parsed_args = mock.Mock()
parsed_args.name = "test_take"
parsed_args.shell = "bash"
content = app.stdout.content
assert 0 == sot.take_action(parsed_args)
assert "_test_take()\n" in content[0]