Skip to content

Commit

Permalink
fix units tests mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
Lendemor committed Feb 3, 2025
1 parent aeb767d commit 4e866fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/units/utils/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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",
Expand Down

0 comments on commit 4e866fc

Please sign in to comment.