From d7170de87583e5b37e68898a8995911d209e7e35 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 14 Sep 2026 12:01:00 +0000 Subject: [PATCH] test(validation): the mistyped-lookup case declares its shape with dims This case still declared the constraint's shape with `foreach`, so the closed schema refused it for an unknown key before the `where` lookup was ever resolved, and the assertion on the lookup listing never ran. It now declares `dims`, like every other case in the block, and reaches the "'lkk' not found / Lookups: ['lk']" refusal it is written for. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_015VTJgAdeTzXM6gRCW39VNT --- tests/test_validation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_validation.py b/tests/test_validation.py index 48944d81..2fcc591a 100644 --- a/tests/test_validation.py +++ b/tests/test_validation.py @@ -84,7 +84,7 @@ class TestValidateExpressions: id='an-unknown-name-in-a-where-used-to-evaluate-to-false', ), pytest.param( - {'constraints': {'cap': {'foreach': ['g'], 'where': 'lkk', 'expression': 'p <= c'}}}, + {'constraints': {'cap': {'dims': ['g'], 'where': 'lkk', 'expression': 'p <= c'}}}, ("'lkk' not found", "Lookups: ['lk']"), id='a-mistyped-lookup-in-a-where-lists-the-lookups', ),