(self, pytester: Pytester)
| 144 | |
| 145 | class TestClass: |
| 146 | def test_class_with_init_warning(self, pytester: Pytester) -> None: |
| 147 | pytester.makepyfile( |
| 148 | """ |
| 149 | class TestClass1(object): |
| 150 | def __init__(self): |
| 151 | pass |
| 152 | """ |
| 153 | ) |
| 154 | result = pytester.runpytest() |
| 155 | result.stdout.fnmatch_lines( |
| 156 | [ |
| 157 | "*cannot collect test class 'TestClass1' because it has " |
| 158 | "a __init__ constructor (from: test_class_with_init_warning.py)" |
| 159 | ] |
| 160 | ) |
| 161 | |
| 162 | def test_class_with_new_warning(self, pytester: Pytester) -> None: |
| 163 | pytester.makepyfile( |
nothing calls this directly
no test coverage detected