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

Method notifyTestsDiscovered

Tools/unittestgui/unittestgui.py:276–286  ·  view source on GitHub ↗
(self, test_suite)

Source from the content-addressed store, hash-verified

274 self.test_file_glob_pattern = d.test_file_glob_pattern
275
276 def notifyTestsDiscovered(self, test_suite):
277 discovered = test_suite.countTestCases()
278 self.runCountVar.set(0)
279 self.failCountVar.set(0)
280 self.errorCountVar.set(0)
281 self.remainingCountVar.set(discovered)
282 self.progressBar.setProgressFraction(0.0)
283 self.errorListbox.delete(0, tk.END)
284 self.statusVar.set("Discovering tests from %s. Found: %s" %
285 (self.directory_to_read, discovered))
286 self.stopGoButton['state'] = tk.NORMAL
287
288 def createWidgets(self):
289 """Creates and packs the various widgets.

Callers

nothing calls this directly

Calls 4

setProgressFractionMethod · 0.80
countTestCasesMethod · 0.45
setMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected