diff options
Diffstat (limited to 'tests/unit/mainwindow/test_prompt.py')
-rw-r--r-- | tests/unit/mainwindow/test_prompt.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/mainwindow/test_prompt.py b/tests/unit/mainwindow/test_prompt.py index 6922183d9..385ba9007 100644 --- a/tests/unit/mainwindow/test_prompt.py +++ b/tests/unit/mainwindow/test_prompt.py @@ -79,7 +79,7 @@ class TestFileCompletion: # Deleting /f[oo/] with qtbot.wait_signal(prompt._file_model.directoryLoaded): for _ in range(3): - qtbot.keyPress(prompt._lineedit, Qt.Key_Backspace) + qtbot.keyPress(prompt._lineedit, Qt.Key.Key_Backspace) # For some reason, this isn't always called when using qtbot.keyPress. prompt._set_fileview_root(prompt._lineedit.text()) @@ -92,7 +92,7 @@ class TestFileCompletion: # Deleting /[foo] for _ in range(3): - qtbot.keyPress(prompt._lineedit, Qt.Key_Backspace) + qtbot.keyPress(prompt._lineedit, Qt.Key.Key_Backspace) # We should now show / again, so tabbing twice gives us .. -> bar prompt.item_focus('next') @@ -101,8 +101,8 @@ class TestFileCompletion: @pytest.mark.parametrize("keys, expected", [ ([], ['..', 'bar', 'bat', 'foo']), - ([Qt.Key_F], ['..', 'foo']), - ([Qt.Key_A], ['..', 'bar', 'bat']), + ([Qt.Key.Key_F], ['..', 'foo']), + ([Qt.Key.Key_A], ['..', 'bar', 'bat']), ]) def test_filtering_path(self, qtbot, tmp_path, get_prompt, keys, expected): testdir = tmp_path / 'test' |