diff options
author | Jason Rosenzweig <mail4jasonr@gmail.com> | 2021-06-04 01:26:41 +0800 |
---|---|---|
committer | Jason Rosenzweig <mail4jasonr@gmail.com> | 2021-06-04 01:26:41 +0800 |
commit | a88a83765c5749d18c24ff6daeff4cdbb534f0f6 (patch) | |
tree | 01dc9f4f8809a21396d1dbb2479e31da1463869c /tests | |
parent | 1fe3ba356e4243581fa3ee308287560bff7ccab4 (diff) | |
download | qutebrowser-a88a83765c5749d18c24ff6daeff4cdbb534f0f6.tar.gz qutebrowser-a88a83765c5749d18c24ff6daeff4cdbb534f0f6.zip |
Forgot to delete commented out code
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/mainwindow/test_prompt.py | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/tests/unit/mainwindow/test_prompt.py b/tests/unit/mainwindow/test_prompt.py index 558eaa89b..337de36d6 100644 --- a/tests/unit/mainwindow/test_prompt.py +++ b/tests/unit/mainwindow/test_prompt.py @@ -122,42 +122,6 @@ class TestFileCompletion: assert visible.sort() == expected - - # # Make sure all directories are shown - # num_rows = prompt._file_model.rowCount(prompt._root_index) - # visible = [] - # for row in range(num_rows): - # parent = prompt._file_model.index(os.path.basename(prompt._lineedit.text())) - # index = prompt._file_model.index(row, 0, parent) - # if prompt._file_view.isRowHidden(index.row(), index.parent()): - # visible.append(index.data()) - - # assert visible.sort() == ['bar', 'foo', 'bat'].sort() - - # # Only foo should be completed with f - # qtbot.keyPress(prompt._lineedit, Qt.Key_F) - # num_rows = prompt._file_model.rowCount(prompt._root_index) - # visible = [] - # for row in range(num_rows): - # parent = prompt._file_model.index(os.path.basename(prompt._lineedit.text())) - # index = prompt._file_model.index(row, 0, parent) - # if prompt._file_view.isRowHidden(index.row(), index.parent()): - # visible.append(index.data()) - - # assert visible.sort() == ['foo'].sort() - - # # bat and bar should show up with a typed - # qtbot.keyPress(prompt._lineedit, Qt.Key_Backspace) - # qtbot.keyPress(prompt._lineedit, Qt.Key_A) - # num_rows = prompt._file_model.rowCount(prompt._root_index) - # visible = [] - # for row in range(num_rows): - # index = prompt._file_model.index(row, 0, prompt._file_model.index(os.path.basename(prompt._lineedit.text()))) - # if prompt._file_view.isRowHidden(index.row(), index.parent()): - # visible.append(index.data()) - - # assert visible.sort() == ['bar', 'bat'].sort() - @pytest.mark.linux def test_root_path(self, get_prompt): """With / as path, show root contents.""" |