MCPcopy Create free account
hub / github.com/ezyang/ghstack / test_stdout

Method test_stdout

test_shell.py:59–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 return "\n".join(redact(r.getMessage()) for r in cm.records)
58
59 def test_stdout(self) -> None:
60 with self.assertLogs(level=logging.DEBUG) as cm:
61 self.emit(out(r"arf\n"))
62 self.assertExpectedInline(
63 self.flog(cm),
64 """\
65$ python emitter.py o 'arf\\n'
66arf
67""",
68 )
69
70 def test_stderr(self) -> None:
71 with self.assertLogs(level=logging.DEBUG) as cm:

Callers

nothing calls this directly

Calls 3

emitMethod · 0.95
flogMethod · 0.95
outClass · 0.85

Tested by

no test coverage detected