]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue18130: Test class idlelib.configSectionNameDialog.GetCfgSectionNameDialog.
authorTerry Jan Reedy <tjreedy@udel.edu>
Wed, 5 Jun 2013 18:22:26 +0000 (14:22 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Wed, 5 Jun 2013 18:22:26 +0000 (14:22 -0400)
commit247bd5ea3042caf14ef60b334a2185658bfd1d09
treee4dcf2f889f39c72ccb6362bf65c97f259642721
parenta534fc4b3bd4b731be9304be626bc161f53d7bfb
Issue18130: Test class idlelib.configSectionNameDialog.GetCfgSectionNameDialog.
Fix bug in existing human test and add instructions; fix two bugs in tested
code; remove redundancies, add spaces, and change two internal method names.
Add mock_tk with mocks for tkinter.Variable subclasses and tkinter.messagebox.
Use mocks in test_config_name to unittest methods that are otherwise gui-free.
Lib/idlelib/configSectionNameDialog.py
Lib/idlelib/idle_test/mock_tk.py [new file with mode: 0644]
Lib/idlelib/idle_test/test_config_name.py [new file with mode: 0644]