Actually, there is a part I didn’t manage to migrate since the tests are failing.
I didn’t manage to catch with capsys printed message with sys.exit(), where with print() this is no problem.
So, let’s keep message_exit() usage. This is fine this way.
With this solution, PT012 Ruff exception can also be removed:
grep -rn "PT012"tests/unit/money/test_transfer_cli.py:121: with pytest.raises(SystemExit) as pytest_exit: # noqa: PT012tests/unit/test_public_key.py:113: with pytest.raises(SystemExit) as pytest_exit: # noqa: PT012
A bit hard to fix, since values are variable and doesn’t work for some reasons.