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:
@@ -698,7 +698,13 @@ def test_normalize_lens_finding_rejects_bad_inputs():
|
|||||||
|
|
||||||
def test_posthash_matches_feedback_posthash():
|
def test_posthash_matches_feedback_posthash():
|
||||||
# Golden vector: identical inputs must produce identical 16-char hex.
|
# Golden vector: identical inputs must produce identical 16-char hex.
|
||||||
|
# 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
|
import feedback as fb
|
||||||
|
except ImportError:
|
||||||
|
import pytest
|
||||||
|
pytest.skip("feedback module not present (see pilot/feedback*.py WIP)")
|
||||||
cases = [
|
cases = [
|
||||||
("a/b.ts", 12, "critical", "SQL injection via string concat"),
|
("a/b.ts", 12, "critical", "SQL injection via string concat"),
|
||||||
("a/b.ts", 12, "medium", "SQL injection via string concat"),
|
("a/b.ts", 12, "medium", "SQL injection via string concat"),
|
||||||
|
|||||||
Reference in New Issue
Block a user