diff --git a/json_to_md.py b/json_to_md.py index 4be2fa9d..8452cafd 100644 --- a/json_to_md.py +++ b/json_to_md.py @@ -295,8 +295,7 @@ def run_pytest_and_generate_banner_with_logs(md_path, log_path, exit_code): "✅ **Pytest completed successfully**\n\n" "> All tests were collected and executed properly. See the details below.\n\n" ) - - if exit_code == 2: + elif exit_code == 2: banner = ( "⚠️ **Test execution interrupted**\n\n" "> The test run was interrupted by the user (reasons : KeyboardInterrupt or ...).\n\n"