From 64cd222e49fcd850553cff81a4eec8559b57025e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Falc=C3=A3o?= Date: Thu, 8 Feb 2024 04:09:36 +0000 Subject: [PATCH] fixes tests --- tests/unit/reporters/test_feature_reporter.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/unit/reporters/test_feature_reporter.py b/tests/unit/reporters/test_feature_reporter.py index 945d5cd..bc5cd96 100644 --- a/tests/unit/reporters/test_feature_reporter.py +++ b/tests/unit/reporters/test_feature_reporter.py @@ -399,13 +399,7 @@ def contrive_special_syntax_disabled_error(): reporter.on_internal_runtime_error(context, error) - expects(sh.mock_calls).to.equal( - [ - call.bold_red( - f' File "{collapse_path(__file__)}", line 392, in contrive_special_syntax_disabled_error\n raise InternalRuntimeError(context, RuntimeError("fail"))\n' - ) - ] - ) + expects(sh.mock_calls).to.equal([call.bold_red(' File "~/projects/personal/sure/tests/unit/reporters/test_feature_reporter.py", line 392, in contrive_special_syntax_disabled_error\n raise InternalRuntimeError(context, RuntimeError("fail"))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n')]) exit.assert_called_once_with(exit_code(str(exc)))