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

Function _check

tests/test_python_forward_ref_file_id.py:36–43  ·  view source on GitHub ↗
(result, labels, edges)

Source from the content-addressed store, hash-verified

34
35
36def _check(result, labels, edges):
37 file_nodes = [n for n in result["nodes"] if n["label"] == "widget.py"]
38 assert len(file_nodes) == 1, labels
39 assert ("widget.py", "contains", "Widget") in edges
40 assert ("widget.py", "contains", "Helper") in edges
41 assert ("Widget", "contains", "Widget") not in edges
42 assert ("Widget", "contains", "Helper") not in edges
43 assert (".make()", "calls", ".draw()") in edges
44
45
46def test_forward_ref_keeps_file_node_single_file(tmp_path):

Calls

no outgoing calls

Tested by

no test coverage detected