Remove LimitLineParser from test
As suggested by @The-Compiler, this is not really necessary
This commit is contained in:
parent
f55242ad93
commit
69061c5629
@ -37,17 +37,12 @@ class TestCommandLineEdit:
|
|||||||
Fixture to initialize a CommandLineEdit and its dependencies,
|
Fixture to initialize a CommandLineEdit and its dependencies,
|
||||||
cleaning up afterwards.
|
cleaning up afterwards.
|
||||||
"""
|
"""
|
||||||
command_history = lineparser.LimitLineParser('', '', limit=None)
|
|
||||||
objreg.register('command-history', command_history)
|
|
||||||
cmd_edit = CommandLineEdit(None)
|
cmd_edit = CommandLineEdit(None)
|
||||||
cmd_edit.set_prompt(':')
|
cmd_edit.set_prompt(':')
|
||||||
qtbot.add_widget(cmd_edit)
|
qtbot.add_widget(cmd_edit)
|
||||||
assert cmd_edit.text() == ''
|
assert cmd_edit.text() == ''
|
||||||
|
|
||||||
yield cmd_edit
|
yield cmd_edit
|
||||||
|
|
||||||
objreg.delete('command-history')
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def mock_clipboard(self, mocker):
|
def mock_clipboard(self, mocker):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user