Skip to content

Commit b6aec6a

Browse files
committed
test(lineage): read the structural cache from the active engine's directory
1 parent 54c5320 commit b6aec6a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎tests/e2e/src/sqlbuild/cli/commands/main/lineage/test_lineage.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import pytest
99

10+
from sqlbuild.compiler.frontier.main.engine_cache_name import engine_cache_name
1011
from tests.e2e.src.sqlbuild.cli.commands.main.lineage._test_types import (
1112
ColumnLineageCacheCliTestCase,
1213
DiamondLineageTreeCliTestCase,
@@ -34,7 +35,9 @@
3435
r"^[│ ]*[├└]── (?![^\n]*\(already shown\))[^\n]*?(orders_(?:left_|right_)?\d+(?:\.amount)?)",
3536
re.MULTILINE,
3637
)
37-
_LINEAGE_CACHE_RELATIVE_PATH: Path = Path("target/cache/lineage/v1/structural-graph.sqlite3")
38+
_LINEAGE_CACHE_RELATIVE_PATH: Path = (
39+
Path("target/cache") / engine_cache_name("lineage") / "v1" / "structural-graph.sqlite3"
40+
)
3841

3942

4043
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)