From bf5029d6dc3abe9d601c3f57a34c6a6c60a3b55a Mon Sep 17 00:00:00 2001 From: lmiranda Date: Mon, 2 Feb 2026 14:05:24 -0500 Subject: [PATCH] fix(contract-validator): update test for new contract INFO issue Test fixture without gate_contract now correctly expects INFO issue rather than zero issues. Co-Authored-By: Claude Opus 4.5 --- .../contract-validator/tests/test_validation_tools.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mcp-servers/contract-validator/tests/test_validation_tools.py b/mcp-servers/contract-validator/tests/test_validation_tools.py index 6af39eb..aae08a1 100644 --- a/mcp-servers/contract-validator/tests/test_validation_tools.py +++ b/mcp-servers/contract-validator/tests/test_validation_tools.py @@ -350,7 +350,10 @@ async def test_validate_workflow_integration_complete(validation_tools, domain_p assert result["gate_command_found"] is True assert result["review_command_found"] is True assert result["advisory_agent_found"] is True - assert len(result["issues"]) == 0 + # May have INFO issue about missing contract version (not an error/warning) + error_or_warning = [i for i in result["issues"] + if i["severity"].value in ("error", "warning")] + assert len(error_or_warning) == 0 @pytest.mark.asyncio