test(opencode_review): skip posthash golden when feedback module absent

The golden-vector test references the unmerged pilot/feedback*.py module
(WIP, untracked). Without an explicit skip, main branch fails 1 test.
This commit is contained in:
claude
2026-08-22 01:43:05 +00:00
parent 8e8ae54669
commit d38e1c8693
+7 -1
View File
@@ -698,7 +698,13 @@ def test_normalize_lens_finding_rejects_bad_inputs():
def test_posthash_matches_feedback_posthash():
# Golden vector: identical inputs must produce identical 16-char hex.
import feedback as fb
# Skipped when the unmerged feedback module isn't on the path (see
# pilot/feedback*.py — work in progress, not yet committed).
try:
import feedback as fb
except ImportError:
import pytest
pytest.skip("feedback module not present (see pilot/feedback*.py WIP)")
cases = [
("a/b.ts", 12, "critical", "SQL injection via string concat"),
("a/b.ts", 12, "medium", "SQL injection via string concat"),