change error type

This commit is contained in:
Khaleel Al-Adhami 2024-11-05 13:12:16 -08:00
parent 52bef9220d
commit a74c738976

View File

@ -19,7 +19,7 @@ from reflex.utils import (
types,
)
from reflex.utils import exec as utils_exec
from reflex.utils.exceptions import ReflexError
from reflex.utils.exceptions import ReflexError, SystemPackageMissingError
from reflex.vars.base import Var
@ -503,7 +503,7 @@ def test_bun_install_without_unzip(mocker):
mocker.patch("pathlib.Path.exists", return_value=False)
mocker.patch("reflex.utils.prerequisites.constants.IS_WINDOWS", False)
with pytest.raises(FileNotFoundError):
with pytest.raises(SystemPackageMissingError):
prerequisites.install_bun()