Problem: Keonik1#2 (comment)
Brief description:
capsys.readouterr() does not read messages that are output via the Out class and the Out.green, Out.red, Out.yellow functions themselves.
The likely reason is that Out redirects output directly to stdout, consoles, rather than to Python's stdout, which is redefined by pytest.
Maybe this will be usefull: https://stackoverflow.com/a/52844694