Call setupApp with each possible graphics type.
(self, overrideRootMenu)
| 97 | |
| 98 | @mock.patch('idlelib.macosx.overrideRootMenu') #27312 |
| 99 | def test_setupapp(self, overrideRootMenu): |
| 100 | "Call setupApp with each possible graphics type." |
| 101 | root = self.root |
| 102 | flist = FileList(root) |
| 103 | for tktype in alltypes: |
| 104 | with self.subTest(tktype=tktype): |
| 105 | macosx._tk_type = tktype |
| 106 | macosx.setupApp(root, flist) |
| 107 | if tktype in ('carbon', 'cocoa'): |
| 108 | self.assertTrue(overrideRootMenu.called) |
| 109 | overrideRootMenu.reset_mock() |
| 110 | |
| 111 | |
| 112 | if __name__ == '__main__': |
nothing calls this directly
no test coverage detected