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

Method test_no_tests_ran_skip

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

Source from the content-addressed store, hash-verified

1757 stats=0, filtered=True)
1758
1759 def test_no_tests_ran_skip(self):
1760 code = textwrap.dedent("""
1761 import unittest
1762
1763 class Tests(unittest.TestCase):
1764 def test_skipped(self):
1765 self.skipTest("because")
1766 """)
1767 testname = self.create_test(code=code)
1768
1769 output = self.run_tests(testname)
1770 self.check_executed_tests(output, [testname],
1771 stats=TestStats(1, skipped=1))
1772
1773 def test_no_tests_ran_multiple_tests_nonexistent(self):
1774 code = textwrap.dedent("""

Callers

nothing calls this directly

Calls 5

run_testsMethod · 0.95
TestStatsClass · 0.90
dedentMethod · 0.80
create_testMethod · 0.80
check_executed_testsMethod · 0.80

Tested by

no test coverage detected