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

Function test_missing_node_field

tests/test_validate.py:120–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118 assert any("target" in e and "ghost" in e for e in errors)
119
120def test_missing_node_field():
121 data = {
122 "nodes": [{"id": "n1", "label": "A", "source_file": "a.py"}], # missing file_type
123 "edges": [],
124 }
125 errors = validate_extraction(data)
126 assert any("file_type" in e for e in errors)
127
128def test_assert_valid_raises_on_errors():
129 with pytest.raises(ValueError, match="error"):

Callers

nothing calls this directly

Calls 1

validate_extractionFunction · 0.90

Tested by

no test coverage detected