(self, fixturedef: FixtureDef[object])
| 885 | ) |
| 886 | |
| 887 | def _format_fixturedef_line(self, fixturedef: FixtureDef[object]) -> str: |
| 888 | factory = fixturedef.func |
| 889 | path, lineno = getfslineno(factory) |
| 890 | if isinstance(path, Path): |
| 891 | path = bestrelpath(self._pyfuncitem.session.path, path) |
| 892 | sig = signature(factory) |
| 893 | return f"{path}:{lineno + 1}: def {factory.__name__}{sig}" |
| 894 | |
| 895 | def addfinalizer(self, finalizer: Callable[[], object]) -> None: |
| 896 | self._fixturedef.addfinalizer(finalizer) |
no test coverage detected