1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-09-19 03:32:31 +01:00

Remove on_change from CommandSelector

This commit is contained in:
nvbn
2015-09-08 12:27:17 +03:00
parent b2be0b3cad
commit 1fb6dd925b
2 changed files with 4 additions and 11 deletions

View File

@@ -43,8 +43,6 @@ def test_read_actions(patch_getch):
def test_command_selector():
selector = ui.CommandSelector([1, 2, 3])
assert selector.value == 1
changes = []
selector.on_change(changes.append)
selector.next()
assert selector.value == 2
selector.next()
@@ -53,7 +51,6 @@ def test_command_selector():
assert selector.value == 1
selector.previous()
assert selector.value == 3
assert changes == [1, 2, 3, 1, 3]
@pytest.mark.usefixtures('no_colors')