Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
Signed-off-by: Laura Couto <laurarccouto@gmail.com>
  • Loading branch information
lrcouto committed Aug 8, 2024
1 parent cd5aa20 commit 4b2aac0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/framework/cli/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def test_main_hook_exception_handling(self, fake_metadata):
project_metadata=kedro_cli._metadata, command_args=[], exit_code=1
)

assert "An error has occurred: Test Exception" in result.output
assert result.exit_code == 1

@patch("sys.exit")
def test_main_hook_finally_block(self, fake_metadata):
Expand All @@ -535,7 +535,7 @@ def test_main_hook_finally_block(self, fake_metadata):
project_metadata=kedro_cli._metadata, command_args=[], exit_code=0
)

assert "An error has occurred:" not in result.output
assert result.exit_code == 0


@mark.usefixtures("chdir_to_dummy_project")
Expand Down

0 comments on commit 4b2aac0

Please sign in to comment.