MCPcopy Index your code
hub / github.com/python/cpython / test_invoke

Method test_invoke

Lib/test/test_ttk/test_widgets.py:242–246  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

240 sort=tk_version >= (8, 7))
241
242 def test_invoke(self):
243 success = []
244 btn = ttk.Button(self.root, command=lambda: success.append(1))
245 btn.invoke()
246 self.assertTrue(success)
247
248
249@add_configure_tests(StandardTtkOptionsTests)

Callers

nothing calls this directly

Calls 3

invokeMethod · 0.95
assertTrueMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected