summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJason Rosenzweig <mail4jasonr@gmail.com>2021-06-05 13:36:10 +0800
committerJason Rosenzweig <mail4jasonr@gmail.com>2021-06-05 13:36:10 +0800
commitc39cb14c62883dbee43e06b1a6316536dd919cdb (patch)
treeced8303f80f69a04376f74b372da24cff3e13cad /tests
parent68cdae184a4d5f0c0542c8092c156164511f58a3 (diff)
parent6c4216d607a54843dec988904e758b166c2a8d9e (diff)
downloadqutebrowser-c39cb14c62883dbee43e06b1a6316536dd919cdb.tar.gz
qutebrowser-c39cb14c62883dbee43e06b1a6316536dd919cdb.zip
Merged upstream
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'