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

Method runClicked

Tools/unittestgui/unittestgui.py:75–87  ·  view source on GitHub ↗

To be called in response to user choosing to run a test

(self)

Source from the content-addressed store, hash-verified

73 pass
74
75 def runClicked(self):
76 "To be called in response to user choosing to run a test"
77 if self.running: return
78 if not self.test_suite:
79 self.errorDialog("Test Discovery", "You discover some tests first!")
80 return
81 self.currentResult = GUITestResult(self)
82 self.totalTests = self.test_suite.countTestCases()
83 self.running = 1
84 self.notifyRunning()
85 self.test_suite.run(self.currentResult)
86 self.running = 0
87 self.notifyStopped()
88
89 def stopClicked(self):
90 "To be called in response to user stopping the running of a test"

Callers

nothing calls this directly

Calls 6

errorDialogMethod · 0.95
notifyRunningMethod · 0.95
notifyStoppedMethod · 0.95
GUITestResultClass · 0.85
countTestCasesMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected