MCPcopy Create free account
hub / github.com/cztomczak/cefpython / run_testcase

Method run_testcase

unittests/_test_runner.py:92–103  ·  view source on GitHub ↗

Run single test case eg 'foo.BarTest'. This is needed to run single testcase that is marked as IsolatedTest.

(self, testcase)

Source from the content-addressed store, hash-verified

90 # ---- Public methods
91
92 def run_testcase(self, testcase):
93 # type: (str) -> None
94 """Run single test case eg 'foo.BarTest'. This is needed to
95 run single testcase that is marked as IsolatedTest."""
96 self._discover("[!_]*.py", testcase)
97 assert not self._count_suites(self._isolated_suites)
98 if not self._count_suites(self._suites):
99 print("[_test_runner.py] ERROR: test case not found")
100 sys.exit(1)
101 # Import errors found during discovery are ignored
102 self._run_suites(self._suites)
103 self._exit()
104
105 def run_file(self, filename):
106 # type: (str) -> None

Callers 1

mainFunction · 0.95

Calls 4

_discoverMethod · 0.95
_count_suitesMethod · 0.95
_run_suitesMethod · 0.95
_exitMethod · 0.95

Tested by

no test coverage detected