Glossary: Refactoring and Clean Code
capsys
Also written: capsys.readouterr
A pytest fixture that captures what a test prints instead of showing it. `capsys.readouterr().out` returns the printed text as one string.
Glossary: Refactoring and Clean Code
Also written: capsys.readouterr
A pytest fixture that captures what a test prints instead of showing it. `capsys.readouterr().out` returns the printed text as one string.