(self, pytester: Pytester)
| 1047 | ) |
| 1048 | |
| 1049 | def test_noself_in_method(self, pytester: Pytester) -> None: |
| 1050 | p = pytester.makepyfile( |
| 1051 | """ |
| 1052 | def pytest_generate_tests(metafunc): |
| 1053 | assert 'xyz' not in metafunc.fixturenames |
| 1054 | |
| 1055 | class TestHello(object): |
| 1056 | def test_hello(xyz): |
| 1057 | pass |
| 1058 | """ |
| 1059 | ) |
| 1060 | result = pytester.runpytest(p) |
| 1061 | result.assert_outcomes(passed=1) |
| 1062 | |
| 1063 | def test_generate_tests_in_class(self, pytester: Pytester) -> None: |
| 1064 | p = pytester.makepyfile( |
nothing calls this directly
no test coverage detected