From c211d260fd41b07864602bc0bc68b4b006a1b2eb Mon Sep 17 00:00:00 2001 From: Lendemor Date: Fri, 24 Jan 2025 23:12:55 +0100 Subject: [PATCH] fix more tests --- tests/units/utils/test_utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/units/utils/test_utils.py b/tests/units/utils/test_utils.py index a941454dc..65e77f4a7 100644 --- a/tests/units/utils/test_utils.py +++ b/tests/units/utils/test_utils.py @@ -137,9 +137,8 @@ def test_validate_bun_path_incompatible_version(mocker): Args: mocker: Pytest mocker object. """ - mocker.patch( - "reflex.utils.path_ops.get_bun_path", return_value=constants.Bun.DEFAULT_PATH - ) + mock_path = mocker.Mock() + mocker.patch("reflex.utils.path_ops.get_bun_path", return_value=mock_path) mocker.patch( "reflex.utils.prerequisites.get_bun_version", return_value=version.parse("0.6.5"),