Skip to content

Commit

Permalink
core: fix path test (#28584)
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis authored Dec 6, 2024
1 parent 2c6bc74 commit c38b845
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libs/core/tests/unit_tests/_api/test_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
def test_as_import_path() -> None:
"""Test that the path is converted to a LangChain import path."""
# 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
assert path.as_import_path(HERE, relative_to=ROOT) == "tests.unit_tests._api"
assert (
Expand Down

0 comments on commit c38b845

Please sign in to comment.