test capture_output(stdout=False)
()
| 134 | |
| 135 | |
| 136 | def test_capture_output_no_stdout(): |
| 137 | """test capture_output(stdout=False)""" |
| 138 | rich = capture.RichOutput(data=full_data) |
| 139 | with capture.capture_output(stdout=False) as cap: |
| 140 | print(hello_stdout, end="") |
| 141 | print(hello_stderr, end="", file=sys.stderr) |
| 142 | rich.display() |
| 143 | assert "" == cap.stdout |
| 144 | assert hello_stderr == cap.stderr |
| 145 | assert len(cap.outputs) == 1 |
| 146 | |
| 147 | |
| 148 | def test_capture_output_no_stderr(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…