bpo-40468: Factor out class ExtPage in idlelib.configdialog (GH-26618)

This commit is contained in:
Terry Jan Reedy 2021-06-08 21:43:49 -04:00 committed by GitHub
parent 9fd21f649d
commit 5571cabf1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 216 additions and 201 deletions

View file

@ -1292,12 +1292,22 @@ class GenPageTest(unittest.TestCase):
self.assertEqual(extpage, {'CodeContext': {'maxlines': '1'}})
#unittest.skip("Nothing here yet TODO")
class ExtPageTest(unittest.TestCase):
"""Test that the help source list works correctly."""
@classmethod
def setUpClass(cls):
page = dialog.extpage
dialog.note.select(page)
class HelpSourceTest(unittest.TestCase):
"""Test that the help source list works correctly."""
@classmethod
def setUpClass(cls):
dialog.note.select(dialog.extpage)
frame = cls.frame = dialog.frame_help
page = dialog.extpage
dialog.note.select(page)
frame = cls.frame = page.frame_help
frame.set = frame.set_add_delete_state = Func()
frame.upc = frame.update_help_changes = Func()
frame.update()