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