mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-08 22:42:05 +00:00
Refac package version check (#7312)
This commit is contained in:
12
tests/unit_tests/test_utils.py
Normal file
12
tests/unit_tests/test_utils.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import pytest
|
||||
|
||||
from langchain.utils import check_package_version
|
||||
|
||||
|
||||
def test_check_package_version_pass() -> None:
|
||||
check_package_version("PyYAML", gte_version="5.4.1")
|
||||
|
||||
|
||||
def test_check_package_version_fail() -> None:
|
||||
with pytest.raises(ValueError):
|
||||
check_package_version("PyYAML", lt_version="5.4.1")
|
Reference in New Issue
Block a user