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:
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"),