(self)
| 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(""" |
nothing calls this directly
no test coverage detected