diff --git a/codeflash/errors/errors.py b/codeflash/errors/errors.py index 55fcaabb..c521b9cb 100644 --- a/codeflash/errors/errors.py +++ b/codeflash/errors/errors.py @@ -3,6 +3,10 @@ from codeflash.code_utils.compat import LF from codeflash.either import CodeflashError +_BEHAVIORAL_TEST_FAILURE_ERROR = CodeflashError( + "BEHAVIORAL_TEST_FAILURE_ERROR", "Failed to establish a baseline for the original code - bevhavioral tests failed." +) + def shell_rc_permission_error(shell_rc_path: str, api_key_line: str) -> CodeflashError: return CodeflashError( @@ -74,7 +78,4 @@ def test_confidence_threshold_not_met_error() -> CodeflashError: def behavioral_test_failure_error() -> CodeflashError: - return CodeflashError( - "BEHAVIORAL_TEST_FAILURE_ERROR", - "Failed to establish a baseline for the original code - behavioral tests failed.", - ) + return _BEHAVIORAL_TEST_FAILURE_ERROR