(self, pytester: Pytester)
| 1161 | assert modpath == "test_func" |
| 1162 | |
| 1163 | def test_class_reportinfo(self, pytester: Pytester) -> None: |
| 1164 | modcol = pytester.getmodulecol( |
| 1165 | """ |
| 1166 | # lineno 0 |
| 1167 | class TestClass(object): |
| 1168 | def test_hello(self): pass |
| 1169 | """ |
| 1170 | ) |
| 1171 | classcol = pytester.collect_by_name(modcol, "TestClass") |
| 1172 | assert isinstance(classcol, Class) |
| 1173 | path, lineno, msg = classcol.reportinfo() |
| 1174 | assert os.fspath(path) == str(modcol.path) |
| 1175 | assert lineno == 1 |
| 1176 | assert msg == "TestClass" |
| 1177 | |
| 1178 | @pytest.mark.filterwarnings( |
| 1179 | "ignore:usage of Generator.Function is deprecated, please use pytest.Function instead" |
nothing calls this directly
no test coverage detected