awslabs / aws-shell

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

Fixed integration tests for key bindings. #137

Closed joguSD closed 7 years ago

joguSD commented 7 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 7 years ago

:shipit: