https://mobhitsbestcheapprice.blogspot.com/2024/06/pytestmain-capture-standard-output.html
Pytest.main() Capture Standard Output