From 67e16a5a0ce82c9aa10ce748d1c698928770c465 Mon Sep 17 00:00:00 2001 From: jso8910 <60021163+jso8910@users.noreply.github.com> Date: Sat, 5 Jun 2021 08:53:22 +0800 Subject: Update tests/unit/mainwindow/test_prompt.py Co-authored-by: Florian Bruhin --- tests/unit/mainwindow/test_prompt.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/unit/mainwindow/test_prompt.py b/tests/unit/mainwindow/test_prompt.py index d5ef5a363..1110e80d7 100644 --- a/tests/unit/mainwindow/test_prompt.py +++ b/tests/unit/mainwindow/test_prompt.py @@ -97,10 +97,11 @@ class TestFileCompletion: prompt.item_focus('next') assert prompt._lineedit.text() == str(testdir / 'bar') - @pytest.mark.parametrize("keys,expected", - [([], ['bar', 'bat', 'foo']), - ([Qt.Key_F], ['foo']), - ([Qt.Key_A], ['bar', 'bat'])]) + @pytest.mark.parametrize("keys, expected", [ + ([], ['bar', 'bat', 'foo']), + ([Qt.Key_F], ['foo']), + ([Qt.Key_A], ['bar', 'bat']), + ]) def test_filtering_path(self, qtbot, tmp_path, get_prompt, keys, expected): testdir = tmp_path / 'test' -- cgit v1.2.3-54-g00ecf From 6c4216d607a54843dec988904e758b166c2a8d9e Mon Sep 17 00:00:00 2001 From: jso8910 <60021163+jso8910@users.noreply.github.com> Date: Sat, 5 Jun 2021 08:53:54 +0800 Subject: Update tests/unit/mainwindow/test_prompt.py Co-authored-by: Florian Bruhin --- tests/unit/mainwindow/test_prompt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/unit/mainwindow/test_prompt.py b/tests/unit/mainwindow/test_prompt.py index 1110e80d7..16a636714 100644 --- a/tests/unit/mainwindow/test_prompt.py +++ b/tests/unit/mainwindow/test_prompt.py @@ -82,7 +82,7 @@ class TestFileCompletion: qtbot.keyPress(prompt._lineedit, Qt.Key_Backspace) prompt._set_fileview_root(prompt._lineedit.text()) - # ...and foo should get completed from f + # '..' and 'foo' should get completed from 'f' prompt.item_focus('next') assert prompt._lineedit.text() == str(tmp_path) prompt.item_focus('next') -- cgit v1.2.3-54-g00ecf