test(api): skip institutional query assertion in open-core

This commit is contained in:
bruno cesar
2026-03-01 00:51:14 -03:00
parent 24cd427209
commit 6639a096a8

View File

@@ -199,7 +199,10 @@ def test_investigation_where_has_all_id_fields(query_name: str) -> None:
def test_self_dealing_uses_value_committed_or_value_paid() -> None:
"""pattern_self_dealing.cypher must read value_committed/value_paid with a.value fallback."""
cypher = _load_cypher("pattern_self_dealing")
try:
cypher = _load_cypher("pattern_self_dealing")
except FileNotFoundError:
pytest.skip("pattern_self_dealing.cypher not shipped in public edition snapshot")
# Must use coalesce with both TransfereGov fields AND Transparencia fallback
assert "a.value_committed" in cypher, (
"pattern_self_dealing.cypher missing a.value_committed (TransfereGov)"