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

Method test_text

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

Source from the content-addressed store, hash-verified

897
898class TestCaptureIO:
899 def test_text(self) -> None:
900 f = capture.CaptureIO()
901 f.write("hello")
902 s = f.getvalue()
903 assert s == "hello"
904 f.close()
905
906 def test_unicode_and_str_mixture(self) -> None:
907 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