fix more tests

This commit is contained in:
Lendemor 2025-01-24 23:12:55 +01:00
parent e97c198057
commit c211d260fd

View File

@ -137,9 +137,8 @@ def test_validate_bun_path_incompatible_version(mocker):
Args: Args:
mocker: Pytest mocker object. mocker: Pytest mocker object.
""" """
mocker.patch( mock_path = mocker.Mock()
"reflex.utils.path_ops.get_bun_path", return_value=constants.Bun.DEFAULT_PATH mocker.patch("reflex.utils.path_ops.get_bun_path", return_value=mock_path)
)
mocker.patch( mocker.patch(
"reflex.utils.prerequisites.get_bun_version", "reflex.utils.prerequisites.get_bun_version",
return_value=version.parse("0.6.5"), return_value=version.parse("0.6.5"),