(self, pytester: Pytester)
| 1823 | reprec.assertoutcome(passed=2) |
| 1824 | |
| 1825 | def test_setup_at_classlevel(self, pytester: Pytester) -> None: |
| 1826 | pytester.makepyfile( |
| 1827 | """ |
| 1828 | import pytest |
| 1829 | class TestClass(object): |
| 1830 | @pytest.fixture(autouse=True) |
| 1831 | def permethod(self, request): |
| 1832 | request.instance.funcname = request.function.__name__ |
| 1833 | def test_method1(self): |
| 1834 | assert self.funcname == "test_method1" |
| 1835 | def test_method2(self): |
| 1836 | assert self.funcname == "test_method2" |
| 1837 | """ |
| 1838 | ) |
| 1839 | reprec = pytester.inline_run("-s") |
| 1840 | reprec.assertoutcome(passed=2) |
| 1841 | |
| 1842 | @pytest.mark.xfail(reason="'enabled' feature not implemented") |
| 1843 | def test_setup_enabled_functionnode(self, pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected