From 4852c460200421b0ec276b2c5962ada7c6447790 Mon Sep 17 00:00:00 2001 From: Lendemor Date: Mon, 10 Feb 2025 17:50:47 +0100 Subject: [PATCH] fix tests --- tests/units/utils/test_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/units/utils/test_utils.py b/tests/units/utils/test_utils.py index 9048090ab..a9b9e417c 100644 --- a/tests/units/utils/test_utils.py +++ b/tests/units/utils/test_utils.py @@ -140,7 +140,7 @@ def test_validate_invalid_bun_path(mocker): with pytest.raises(typer.Exit): prerequisites.validate_bun() - mock_path.samefile.assert_called_once() + mock_path.exists.assert_called_once() def test_validate_bun_path_incompatible_version(mocker): @@ -159,6 +159,8 @@ def test_validate_bun_path_incompatible_version(mocker): with pytest.raises(typer.Exit): prerequisites.validate_bun() + mock_path.exists.assert_called_once() + mock_path.samefile.assert_called_once() def test_remove_existing_bun_installation(mocker):