awslabs / aws-shell

An integrated shell for working with the AWS CLI.
Apache License 2.0
7.22k stars 779 forks source link

Fixed integration tests for key bindings. #137

Closed joguSD closed 8 years ago

joguSD commented 8 years ago

Previously the integration tests for the CommandLineInterface object relied on the default Input and Output objects instantiated which were based on stdin and stdout. prompt_tookit updated to version 1.0.4 which adds checks that the Input and Output objects are TTYs, which doesn't hold true when the tests are run as IO is redirected. Changed the IO objects to be the same that prompt_toolkit uses to test CLI objects.

@JordonPhillips @jamesls

jamesls commented 8 years ago

:shipit: