MCPcopy Create free account
hub / github.com/pytest-dev/pytest / getvalue

Method getvalue

src/_pytest/capture.py:173–175  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

171 super().__init__(io.BytesIO(), encoding="UTF-8", newline="", write_through=True)
172
173 def getvalue(self) -> str:
174 assert isinstance(self.buffer, io.BytesIO)
175 return self.buffer.getvalue().decode("UTF-8")
176
177
178class TeeCaptureIO(CaptureIO):

Callers 15

test_textMethod · 0.95
pytest_terminal_summaryFunction · 0.45
textMethod · 0.45
_runtest_forMethod · 0.45
pytest_configureFunction · 0.45
assert_contains_linesMethod · 0.45
_get_continue_on_failureFunction · 0.45
collectMethod · 0.45
pytest_terminal_summaryFunction · 0.45
longreprtextMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_textMethod · 0.76
pytest_configureFunction · 0.36
assert_contains_linesMethod · 0.36
_get_continue_on_failureFunction · 0.36
collectMethod · 0.36
test_writelineMethod · 0.36
test_rewriteMethod · 0.36
test_getoptionMethod · 0.36
test_textMethod · 0.36