mirror of
https://github.com/Mintplex-Labs/langchain-python.git
synced 2026-07-22 17:25:22 -04:00
d82cbf5e76
Co-authored-by: Nuno Campos <nuno@boringbits.io> Co-authored-by: Bagatur <baskaryan@gmail.com> Co-authored-by: Erick Friis <erick@langchain.dev>
12 lines
320 B
Python
12 lines
320 B
Python
import pytest
|
|
from langchain_core.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")
|