(pytester: Pytester)
| 125 | |
| 126 | |
| 127 | def test_method_setup(pytester: Pytester) -> None: |
| 128 | reprec = pytester.inline_runsource( |
| 129 | """ |
| 130 | class TestSetupMethod(object): |
| 131 | def setup_method(self, meth): |
| 132 | self.methsetup = meth |
| 133 | def teardown_method(self, meth): |
| 134 | del self.methsetup |
| 135 | |
| 136 | def test_some(self): |
| 137 | assert self.methsetup == self.test_some |
| 138 | |
| 139 | def test_other(self): |
| 140 | assert self.methsetup == self.test_other |
| 141 | """ |
| 142 | ) |
| 143 | reprec.assertoutcome(passed=2) |
| 144 | |
| 145 | |
| 146 | def test_method_setup_failure_no_teardown(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected