summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/mainwindow/test_prompt.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/unit/mainwindow/test_prompt.py b/tests/unit/mainwindow/test_prompt.py
index cb394e8c7..055e5b665 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')
@@ -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'