(self)
| 1790 | stats=0, filtered=True) |
| 1791 | |
| 1792 | def test_no_tests_ran_skip(self): |
| 1793 | code = textwrap.dedent(""" |
| 1794 | import unittest |
| 1795 | |
| 1796 | class Tests(unittest.TestCase): |
| 1797 | def test_skipped(self): |
| 1798 | self.skipTest("because") |
| 1799 | """) |
| 1800 | testname = self.create_test(code=code) |
| 1801 | |
| 1802 | output = self.run_tests(testname) |
| 1803 | self.check_executed_tests(output, [testname], |
| 1804 | stats=TestStats(1, skipped=1)) |
| 1805 | |
| 1806 | def test_no_tests_ran_multiple_tests_nonexistent(self): |
| 1807 | code = textwrap.dedent(""" |
nothing calls this directly
no test coverage detected