()
| 118 | assert any("target" in e and "ghost" in e for e in errors) |
| 119 | |
| 120 | def 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 | |
| 128 | def test_assert_valid_raises_on_errors(): |
| 129 | with pytest.raises(ValueError, match="error"): |
nothing calls this directly
no test coverage detected