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

Method test_text

testing/test_capture.py:849–854  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

847
848class TestCaptureIO:
849 def test_text(self) -> None:
850 f = capture.CaptureIO()
851 f.write("hello")
852 s = f.getvalue()
853 assert s == "hello"
854 f.close()
855
856 def test_unicode_and_str_mixture(self) -> None:
857 f = capture.CaptureIO()

Callers

nothing calls this directly

Calls 3

getvalueMethod · 0.95
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected