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

Method make_squeezer_instance

Lib/idlelib/idle_test/test_squeezer.py:95–100  ·  view source on GitHub ↗

Create an actual Squeezer instance with a mock EditorWindow.

(self, editor_window=None)

Source from the content-addressed store, hash-verified

93 return editwin
94
95 def make_squeezer_instance(self, editor_window=None):
96 """Create an actual Squeezer instance with a mock EditorWindow."""
97 if editor_window is None:
98 editor_window = self.make_mock_editor_window()
99 squeezer = Squeezer(editor_window)
100 return squeezer
101
102 def make_text_widget(self, root=None):
103 if root is None:

Callers 10

test_count_linesMethod · 0.95
test_initMethod · 0.95
test_write_no_tagsMethod · 0.95
test_write_not_stdoutMethod · 0.95
test_write_stdoutMethod · 0.95
test_auto_squeezeMethod · 0.95
test_reloadMethod · 0.95

Calls 2

SqueezerClass · 0.90

Tested by

no test coverage detected