MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_success

Method test_success

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

Source from the content-addressed store, hash-verified

976 return self.run_python(cmdargs, **kw)
977
978 def test_success(self):
979 code = textwrap.dedent("""
980 import unittest
981
982 class PassingTests(unittest.TestCase):
983 def test_test1(self):
984 pass
985
986 def test_test2(self):
987 pass
988
989 def test_test3(self):
990 pass
991 """)
992 tests = [self.create_test(f'ok{i}', code=code) for i in range(1, 6)]
993
994 output = self.run_tests(*tests)
995 self.check_executed_tests(output, tests,
996 stats=3 * len(tests))
997
998 def test_skip(self):
999 code = textwrap.dedent("""

Callers

nothing calls this directly

Calls 5

run_testsMethod · 0.95
lenFunction · 0.85
dedentMethod · 0.80
create_testMethod · 0.80
check_executed_testsMethod · 0.80

Tested by

no test coverage detected