MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _graph

Function _graph

tests/test_sql_oracle_editionable.py:34–44  ·  view source on GitHub ↗
(tmp_path: Path, name: str, src: str)

Source from the content-addressed store, hash-verified

32
33
34def _graph(tmp_path: Path, name: str, src: str):
35 path = tmp_path / name
36 path.write_text(src, encoding="utf-8")
37 result = extract_sql(path)
38 labels = sorted(n["label"] for n in result["nodes"] if n["label"] != name)
39 edges = sorted(
40 (e["relation"], e["target"])
41 for e in result["edges"]
42 if e["relation"] != "contains"
43 )
44 return labels, edges
45
46
47@pytest.mark.parametrize(

Calls 1

extract_sqlFunction · 0.90

Tested by

no test coverage detected