MCPcopy
hub / github.com/pytest-dev/pytest / write_docstring

Function write_docstring

src/_pytest/fixtures.py:2332–2334  ·  view source on GitHub ↗
(tw: TerminalWriter, doc: str, indent: str = "    ")

Source from the content-addressed store, hash-verified

2330
2331
2332def write_docstring(tw: TerminalWriter, doc: str, indent: str = " ") -> None:
2333 for line in doc.split("\n"):
2334 tw.line(indent + line)
2335
2336
2337def register_fixture(

Callers 2

write_fixtureFunction · 0.85
_showfixtures_mainFunction · 0.85

Calls 1

lineMethod · 0.45

Tested by

no test coverage detected