Commit 44d6e11 1 parent ef93161 commit 44d6e11 Copy full SHA for 44d6e11
File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1293,7 +1293,7 @@ def validate_bun():
1293
1293
"""
1294
1294
bun_path = path_ops .get_bun_path ()
1295
1295
1296
- if bun_path and bun_path .samefile (constants .Bun .DEFAULT_PATH ):
1296
+ if bun_path and not bun_path .samefile (constants .Bun .DEFAULT_PATH ):
1297
1297
console .info (f"Using custom Bun path: { bun_path } " )
1298
1298
bun_version = get_bun_version ()
1299
1299
if not bun_version :
Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ def test_validate_invalid_bun_path(mocker):
123
123
mocker: Pytest mocker object.
124
124
"""
125
125
mock_path = mocker .Mock ()
126
+ mock_path .samefile .return_value = False
126
127
mocker .patch ("reflex.utils.path_ops.get_bun_path" , return_value = mock_path )
127
128
mocker .patch ("reflex.utils.prerequisites.get_bun_version" , return_value = None )
128
129
@@ -138,6 +139,7 @@ def test_validate_bun_path_incompatible_version(mocker):
138
139
mocker: Pytest mocker object.
139
140
"""
140
141
mock_path = mocker .Mock ()
142
+ mock_path .samefile .return_value = False
141
143
mocker .patch ("reflex.utils.path_ops.get_bun_path" , return_value = mock_path )
142
144
mocker .patch (
143
145
"reflex.utils.prerequisites.get_bun_version" ,
You can’t perform that action at this time.
0 commit comments