-
-
Notifications
You must be signed in to change notification settings - Fork 33k
Closed
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Lib/test/test_curses.py:1371:5: F811 redefinition of unused 'test_move_left' from line 1362
Source:
cpython/Lib/test/test_curses.py
Lines 1362 to 1376 in bbf722d
def test_move_left(self): | |
"""Test moving the cursor left.""" | |
self.mock_win.reset_mock() | |
self.textbox.do_command(curses.KEY_LEFT) | |
self.mock_win.move.assert_called_with(1, 0) | |
self.textbox.do_command(curses.KEY_RIGHT) | |
self.mock_win.move.assert_called_with(1, 2) | |
self.mock_win.reset_mock() | |
def test_move_left(self): | |
"""Test moving the cursor left.""" | |
self.mock_win.reset_mock() | |
self.textbox.do_command(curses.KEY_RIGHT) | |
self.mock_win.move.assert_called_with(1, 2) | |
self.mock_win.reset_mock() |
Based on a context, I think they should be renamed to test_move_left
and test_move_right
.
Linked PRs
sunmy2019
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error