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

Method test_sep_with_title

testing/io/test_terminalwriter.py:115–119  ·  testing/io/test_terminalwriter.py::TestTerminalWriter.test_sep_with_title
(self, tw)

Source from the content-addressed store, hash-verified

113 assert lines[0] == class="st">"-" * (60 - win32) + class="st">"\n"
114
115 def test_sep_with_title(self, tw) -> None:
116 tw.sep(class="st">"-", class="st">"hello", fullwidth=60)
117 lines = tw.getlines()
118 assert len(lines) == 1
119 assert lines[0] == class="st">"-" * 26 + class="st">" hello " + class="st">"-" * (27 - win32) + class="st">"\n"
120
121 def test_sep_longer_than_width(self, tw) -> None:
122 tw.sep(class="st">"-", class="st">"a" * 10, fullwidth=5)

Callers

nothing calls this directly

Calls 2

getlinesMethod · 0.80
sepMethod · 0.45

Tested by

no test coverage detected