capture_output works
()
| 123 | |
| 124 | |
| 125 | def test_capture_output(): |
| 126 | """capture_output works""" |
| 127 | rich = capture.RichOutput(data=full_data) |
| 128 | with capture.capture_output() as cap: |
| 129 | print(hello_stdout, end="") |
| 130 | print(hello_stderr, end="", file=sys.stderr) |
| 131 | rich.display() |
| 132 | assert hello_stdout == cap.stdout |
| 133 | assert hello_stderr == cap.stderr |
| 134 | |
| 135 | |
| 136 | def test_capture_output_no_stdout(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…