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

Method test_timer_event

Lib/idlelib/idle_test/test_codecontext.py:344–354  ·  view source on GitHub ↗
(self, mock_update)

Source from the content-addressed store, hash-verified

342
343 @mock.patch.object(codecontext.CodeContext, 'update_code_context')
344 def test_timer_event(self, mock_update):
345 # Ensure code context is not active.
346 if self.cc.context:
347 self.cc.toggle_code_context_event()
348 self.cc.timer_event()
349 mock_update.assert_not_called()
350
351 # Activate code context.
352 self.cc.toggle_code_context_event()
353 self.cc.timer_event()
354 mock_update.assert_called()
355
356 def test_font(self):
357 eq = self.assertEqual

Callers

nothing calls this directly

Calls 4

timer_eventMethod · 0.80
assert_not_calledMethod · 0.80
assert_calledMethod · 0.80

Tested by

no test coverage detected