From 4e866fc5fbdcf1ee19d31bbd99519854d4385196 Mon Sep 17 00:00:00 2001 From: Lendemor Date: Mon, 3 Feb 2025 22:55:56 +0100 Subject: [PATCH] fix units tests mocking --- tests/units/utils/test_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/units/utils/test_utils.py b/tests/units/utils/test_utils.py index 44356dac5..7cd53f14a 100644 --- a/tests/units/utils/test_utils.py +++ b/tests/units/utils/test_utils.py @@ -123,6 +123,7 @@ def test_validate_invalid_bun_path(mocker): mocker: Pytest mocker object. """ mock_path = mocker.Mock() + mock_path.samefile.return_value = False mocker.patch("reflex.utils.path_ops.get_bun_path", return_value=mock_path) mocker.patch("reflex.utils.prerequisites.get_bun_version", return_value=None) @@ -138,6 +139,7 @@ def test_validate_bun_path_incompatible_version(mocker): mocker: Pytest mocker object. """ mock_path = mocker.Mock() + mock_path.samefile.return_value = False mocker.patch("reflex.utils.path_ops.get_bun_path", return_value=mock_path) mocker.patch( "reflex.utils.prerequisites.get_bun_version",