From ce2c48b972a96390d9de6fb6cfae6c7ad93f04d1 Mon Sep 17 00:00:00 2001 From: Jason Rosenzweig Date: Tue, 20 Jul 2021 00:51:28 +0800 Subject: [PATCH] Seeing if indenting more fixes --- tests/unit/mainwindow/test_prompt.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/unit/mainwindow/test_prompt.py b/tests/unit/mainwindow/test_prompt.py index aac96fc31..6277b9424 100644 --- a/tests/unit/mainwindow/test_prompt.py +++ b/tests/unit/mainwindow/test_prompt.py @@ -150,12 +150,12 @@ class TestFileCompletion: # _set_fileview_root isn't run unless there is an actual keypress qtbot.keyPress(prompt._lineedit, Qt.Key_AsciiTilde) - assert (pathlib.Path(prompt._file_model.rootPath()) / - prompt._to_complete) == pathlib.Path.home() - # The first character on the lineedit should remain ~ - prompt.item_focus('next') - prompt.item_focus('next') - assert prompt._lineedit.text()[0] == '~' + assert (pathlib.Path(prompt._file_model.rootPath()) / + prompt._to_complete) == pathlib.Path.home() + # The first character on the lineedit should remain ~ + prompt.item_focus('next') + prompt.item_focus('next') + assert prompt._lineedit.text()[0] == '~' def test_expand_once(self, qtbot, get_prompt, home_path): home_path.joinpath(*home_path.parts[1:]).mkdir(parents=True) @@ -166,8 +166,8 @@ class TestFileCompletion: # _set_fileview_root isn't run unless there is an actual keypress qtbot.keyPress(prompt._lineedit, Qt.Key_Slash) - # The second instance of home_path shouldn't be replaced with ~ - assert prompt._lineedit.text()[:-1] == '~' + str(home_path) + # The second instance of home_path shouldn't be replaced with ~ + assert prompt._lineedit.text()[:-1] == '~' + str(home_path) def test_dont_contract(self, qtbot, get_prompt, home_path): for directory in ['bar', 'bat', 'foo']: @@ -179,8 +179,8 @@ class TestFileCompletion: # _set_fileview_root isn't run unless there is an actual keypress qtbot.keyPress(prompt._lineedit, Qt.Key_Slash) - prompt.item_focus('next') - prompt.item_focus('next') - # If $HOME is contracted to `~` this test will fail as that is unexpected - assert (prompt._lineedit.text() != - prompt._lineedit.text().replace(os.path.expanduser('~'), '~', 1)) + prompt.item_focus('next') + prompt.item_focus('next') + # If $HOME is contracted to `~` this test will fail as that is unexpected + assert (prompt._lineedit.text() != + prompt._lineedit.text().replace(os.path.expanduser('~'), '~', 1))