editor: Stop using sub-tests.

- Sub-tests were hard to use because the traceback doesn't
  include the line number within the test method.
This commit is contained in:
Andrew Hamilton 2022-01-10 13:45:28 +10:00
parent 2c873cc914
commit 6bb8befb2b

View file

@ -65,8 +65,7 @@ class EditorTestCase(unittest.TestCase):
self.editor.cursor_x, self.editor.cursor_y = cursor_position
def _assert_changes(self, changes):
for index, change in enumerate(changes):
# with self.subTest(index=index, change=change):
for change in changes:
method, expected_text, expected_cursor_position = change
with contextlib.suppress(IndexError):
method()