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

Method getvalue

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

Source from the content-addressed store, hash-verified

205 super().__init__(io.BytesIO(), encoding="UTF-8", newline="", write_through=True)
206
207 def getvalue(self) -> str:
208 assert isinstance(self.buffer, io.BytesIO)
209 return self.buffer.getvalue().decode("UTF-8")
210
211
212class TeeCaptureIO(CaptureIO):

Callers 15

test_textMethod · 0.95
_newMethod · 0.45
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
longreprtextMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_textMethod · 0.76
_newMethod · 0.36
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_textMethod · 0.36