mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-19 05:13:46 +00:00
core: fix path test (#28584)
This commit is contained in:
parent
2c6bc74cb1
commit
c38b845d7e
@ -10,7 +10,11 @@ ROOT = HERE.parent.parent.parent
|
|||||||
def test_as_import_path() -> None:
|
def test_as_import_path() -> None:
|
||||||
"""Test that the path is converted to a LangChain import path."""
|
"""Test that the path is converted to a LangChain import path."""
|
||||||
# Verify that default paths are correct
|
# Verify that default paths are correct
|
||||||
assert path.PACKAGE_DIR == ROOT / "langchain_core"
|
|
||||||
|
# if editable install, check directory structure
|
||||||
|
if path.PACKAGE_DIR == ROOT / "langchain_core":
|
||||||
|
assert path.PACKAGE_DIR == ROOT / "langchain_core"
|
||||||
|
|
||||||
# Verify that as import path works correctly
|
# Verify that as import path works correctly
|
||||||
assert path.as_import_path(HERE, relative_to=ROOT) == "tests.unit_tests._api"
|
assert path.as_import_path(HERE, relative_to=ROOT) == "tests.unit_tests._api"
|
||||||
assert (
|
assert (
|
||||||
|
Loading…
Reference in New Issue
Block a user