{"action":"closed","issue":{"url":"https://api.github.com/repos/awslabs/aws-shell/issues/125","repository_url":"https://api.github.com/repos/awslabs/aws-shell","labels_url":"https://api.github.com/repos/awslabs/aws-shell/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/awslabs/aws-shell/issues/125/comments","events_url":"https://api.github.com/repos/awslabs/aws-shell/issues/125/events","html_url":"https://github.com/awslabs/aws-shell/issues/125","id":160627277,"number":125,"title":"test_keys fails with prompt-toolkit 1.0.1","user":{"login":"donnemartin","id":5458997,"avatar_url":"https://avatars.githubusercontent.com/u/5458997?v=3","gravatar_id":"","url":"https://api.github.com/users/donnemartin","html_url":"https://github.com/donnemartin","followers_url":"https://api.github.com/users/donnemartin/followers","following_url":"https://api.github.com/users/donnemartin/following{/other_user}","gists_url":"https://api.github.com/users/donnemartin/gists{/gist_id}","starred_url":"https://api.github.com/users/donnemartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donnemartin/subscriptions","organizations_url":"https://api.github.com/users/donnemartin/orgs","repos_url":"https://api.github.com/users/donnemartin/repos","events_url":"https://api.github.com/users/donnemartin/events{/privacy}","received_events_url":"https://api.github.com/users/donnemartin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-16T10:19:42Z","updated_at":"2016-06-16T10:21:09Z","closed_at":"2016-06-16T10:21:09Z","body":"`feed_key` was separated to `feed` and `process_keys`.  For more details, check out:\r\n\r\nhttps://github.com/jonathanslenders/python-prompt-toolkit/issues/321\r\n\r\n```\r\n======================================= FAILURES =======================================\r\n__________________________________ KeysTest.test_F10 ___________________________________\r\n\r\nself = <tests.integration.test_keys.KeysTest testMethod=test_F10>\r\n\r\n    def test_F10(self):\r\n        self.processor.feed(KeyPress(Keys.F10, ''))\r\n>       assert self.aws_shell.cli.is_exiting\r\nE       AssertionError: assert <prompt_toolkit.interface.CommandLineInterface object at 0x106ec4c50>.is_exiting\r\nE        +  where <prompt_toolkit.interface.CommandLineInterface object at 0x106ec4c50> = <awsshell.app.AWSShell object at 0x106e37390>.cli\r\nE        +    where <awsshell.app.AWSShell object at 0x106e37390> = <tests.integration.test_keys.KeysTest testMethod=test_F10>.aws_shell\r\n\r\ntests/integration/test_keys.py:56: AssertionError\r\n___________________________________ KeysTest.test_F2 ___________________________________\r\n\r\nself = <tests.integration.test_keys.KeysTest testMethod=test_F2>\r\n\r\n    def test_F2(self):\r\n        match_fuzzy = self.aws_shell.model_completer.match_fuzzy\r\n        self.processor.feed(KeyPress(Keys.F2, ''))\r\n>       assert match_fuzzy != self.aws_shell.model_completer.match_fuzzy\r\nE       AssertionError: assert True != True\r\nE        +  where True = <Mock id='4411315984'>.match_fuzzy\r\nE        +    where <Mock id='4411315984'> = <awsshell.app.AWSShell object at 0x106ef5748>.model_completer\r\nE        +      where <awsshell.app.AWSShell object at 0x106ef5748> = <tests.integration.test_keys.KeysTest testMethod=test_F2>.aws_shell\r\n\r\ntests/integration/test_keys.py:33: AssertionError\r\n___________________________________ KeysTest.test_F3 ___________________________________\r\n\r\nself = <tests.integration.test_keys.KeysTest testMethod=test_F3>\r\n\r\n    def test_F3(self):\r\n        enable_vi_bindings = self.aws_shell.enable_vi_bindings\r\n        with self.assertRaises(InputInterrupt):\r\n            self.processor.feed(KeyPress(Keys.F3, ''))\r\n>           assert enable_vi_bindings != self.aws_shell.enable_vi_bindings\r\nE           AssertionError: assert True != True\r\nE            +  where True = <awsshell.app.AWSShell object at 0x106f82e10>.enable_vi_bindings\r\nE            +    where <awsshell.app.AWSShell object at 0x106f82e10> = <tests.integration.test_keys.KeysTest testMethod=test_F3>.aws_shell\r\n\r\ntests/integration/test_keys.py:39: AssertionError\r\n___________________________________ KeysTest.test_F4 ___________________________________\r\n\r\nself = <tests.integration.test_keys.KeysTest testMethod=test_F4>\r\n\r\n    def test_F4(self):\r\n        show_completion_columns = self.aws_shell.show_completion_columns\r\n        with self.assertRaises(InputInterrupt):\r\n            self.processor.feed(KeyPress(Keys.F4, ''))\r\n>           assert show_completion_columns != \\\r\n                self.aws_shell.show_completion_columns\r\nE           AssertionError: assert True != True\r\nE            +  where True = <awsshell.app.AWSShell object at 0x107836160>.show_completion_columns\r\nE            +    where <awsshell.app.AWSShell object at 0x107836160> = <tests.integration.test_keys.KeysTest testMethod=test_F4>.aws_shell\r\n\r\ntests/integration/test_keys.py:45: AssertionError\r\n___________________________________ KeysTest.test_F5 ___________________________________\r\n\r\nself = <tests.integration.test_keys.KeysTest testMethod=test_F5>\r\n\r\n    def test_F5(self):\r\n        show_help = self.aws_shell.show_help\r\n        with self.assertRaises(InputInterrupt):\r\n            self.processor.feed(KeyPress(Keys.F5, ''))\r\n>           assert show_help != self.aws_shell.show_help\r\nE           AssertionError: assert True != True\r\nE            +  where True = <awsshell.app.AWSShell object at 0x1078acb00>.show_help\r\nE            +    where <awsshell.app.AWSShell object at 0x1078acb00> = <tests.integration.test_keys.KeysTest testMethod=test_F5>.aws_shell\r\n```"}}
{"actor":{"display_login":"donnemartin"}}