diff options
author | Irina Truong <i.chernyavska@gmail.com> | 2018-09-28 14:18:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-28 14:18:40 -0700 |
commit | 392491a74d2d8abcb2c0db5230fc7f11502c6ba9 (patch) | |
tree | 20f88af6503783b0bc9880a440f5674264fa4220 /tests/test_main.py | |
parent | d3bdb891d309622cbf4e59244a698def8a8bbd2d (diff) |
Cherry-picked prompt-toolkit 2.0 changes. (#930)
* Cherry-picked prompt-toolkit 2.0 changes.
* Increase help timeout.
* Missed one.
* Fixes editor command.
* Expect exact to fix named query error.
* Unicode is non-optional with ptk 2.0.
* Unicode literals all the things (almost).
* PEP8.
* Change how we swap completers.
* By default, bottom toolbar styles are reversed. We don't want that.
* Adapt styles to 2.0.
* The future is now. Switch to ptk 2.0 style names.
* PEP8.
* Flag for enable_open_in_editor.
* add class:prompt to prompt
* Removed workaround for #668. Some renaming.
* use pgcli.completer instead of app.current_buffer.completer
* enable_system_prompt=True like old prompt toolkit
* keep search_ignore_case enabled (was ignore_case)
* fix closing parenthese
* keep marking class:continuation token for continuation
* capture KeyboardInterrupt manually
AbortAction has been removed in Prompt_toolkit 2.0
* replace C-J with enter, add more comments
* reversed ([...]) to [(...)] (oops)
* pep8 fixes
* Does Vi mode have to be applied to session every time?
* (workaround) also enable vi_mode after edit command
* Fixed test errors after rebasing on master.
Diffstat (limited to 'tests/test_main.py')
-rw-r--r-- | tests/test_main.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_main.py b/tests/test_main.py index cc7693a3..fc4de7d9 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -182,9 +182,9 @@ def pset_pager_mocks(): cli.watch_command = None with mock.patch('pgcli.main.click.echo') as mock_echo, \ mock.patch('pgcli.main.click.echo_via_pager') as mock_echo_via_pager, \ - mock.patch.object(cli, 'cli') as mock_cli: + mock.patch.object(cli, 'prompt_app') as mock_app: - yield cli, mock_echo, mock_echo_via_pager, mock_cli + yield cli, mock_echo, mock_echo_via_pager, mock_app @pytest.mark.parametrize('term_height,term_width,text', test_data, ids=test_ids) |