MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / test_stdout_captured

Method test_stdout_captured

tests/test_cmd.py:89–93  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

87 assert "cmd.run()" in str(w[0].message)
88
89 def test_stdout_captured(self):
90 result = cmd.run(["python", "-c", "print('hello')"])
91 assert "hello" in result.out
92 assert isinstance(result.stdout, bytes)
93 assert b"hello" in result.stdout
94
95 def test_stderr_captured(self):
96 result = cmd.run(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected