(capfd)
| 212 | |
| 213 | |
| 214 | def test_multi_captured(capfd): |
| 215 | stream = StringIO() |
| 216 | with redirect_stdout(stream): |
| 217 | m.captured_output("a") |
| 218 | m.raw_output("b") |
| 219 | m.captured_output("c") |
| 220 | m.raw_output("d") |
| 221 | stdout, stderr = capfd.readouterr() |
| 222 | assert stdout == "bd" |
| 223 | assert stream.getvalue() == "ac" |
| 224 | |
| 225 | |
| 226 | def test_dual(capsys): |
nothing calls this directly
no outgoing calls
no test coverage detected