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

Method test_success

Lib/test/test_regrtest.py:1012–1030  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1010 return self.run_python(cmdargs, **kw)
1011
1012 def test_success(self):
1013 code = textwrap.dedent("""
1014 import unittest
1015
1016 class PassingTests(unittest.TestCase):
1017 def test_test1(self):
1018 pass
1019
1020 def test_test2(self):
1021 pass
1022
1023 def test_test3(self):
1024 pass
1025 """)
1026 tests = [self.create_test(f'ok{i}', code=code) for i in range(1, 6)]
1027
1028 output = self.run_tests(*tests)
1029 self.check_executed_tests(output, tests,
1030 stats=3 * len(tests))
1031
1032 def test_skip(self):
1033 code = textwrap.dedent("""

Callers

nothing calls this directly

Calls 4

run_testsMethod · 0.95
create_testMethod · 0.80
check_executed_testsMethod · 0.80
dedentMethod · 0.45

Tested by

no test coverage detected