From 595a4306d550425676ce40c3aa40cad6bea90666 Mon Sep 17 00:00:00 2001 From: prrao87 Date: Sat, 7 Nov 2026 14:28:44 -0500 Subject: [PATCH] test: match the missing-parameter error case-insensitively typos 1.51.1, which the GitHub Actions bump in #141 moves Spell Check to, reads the character class in `[Pp]arameter` as the misspelling `arameter`. `(?i)parameter` matches the same messages. --- python/python/tests/test_plan_cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/python/tests/test_plan_cache.py b/python/python/tests/test_plan_cache.py index 700dc25..9263a70 100644 --- a/python/python/tests/test_plan_cache.py +++ b/python/python/tests/test_plan_cache.py @@ -77,7 +77,7 @@ def execute(person_id): def test_cached_query_still_rejects_missing_or_wrong_types(engine): query = "MATCH (p:Person) WHERE p.id = $id RETURN p.age AS age" engine.execute(query, {"id": 1}) - with pytest.raises(ValueError, match="[Pp]arameter"): + with pytest.raises(ValueError, match="(?i)parameter"): engine.execute(query) with pytest.raises(ValueError, match="Type mismatch"): engine.execute(query, {"id": True})