mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
13 lines
316 B
Python
13 lines
316 B
Python
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")
|