(self, pytester: Pytester)
| 27 | |
| 28 | class TestSetupState: |
| 29 | def test_setup(self, pytester: Pytester) -> None: |
| 30 | item = pytester.getitem(class="st">"def test_func(): pass") |
| 31 | ss = item.session._setupstate |
| 32 | values = [1] |
| 33 | ss.setup(item) |
| 34 | ss.addfinalizer(values.pop, item) |
| 35 | assert values |
| 36 | ss.teardown_exact(None) |
| 37 | assert not values |
| 38 | |
| 39 | def test_teardown_exact_stack_empty(self, pytester: Pytester) -> None: |
| 40 | item = pytester.getitem(class="st">"def test_func(): pass") |
nothing calls this directly
no test coverage detected