Skip to content

Commit

Permalink
fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielfalcao committed Feb 8, 2024
1 parent 3087dab commit 64cd222
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/unit/reporters/test_feature_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))


Expand Down

0 comments on commit 64cd222

Please sign in to comment.