From bf4c405b8f234d2506db4265ce8e2cc23734f613 Mon Sep 17 00:00:00 2001 From: Taewoon Kim Date: Sun, 29 Nov 2026 09:13:01 +0900 Subject: [PATCH] test: accept the engine's new message for a missing index in Cypher DROP INDEX (#526) Upstream 9c89c306fa raises IndexDropFailedException, worded 'There is no such index'. The released 26.11.1 engine says 'does not exist'. Accept both. --- tests/test_cypher_vector_behavior.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_cypher_vector_behavior.py b/tests/test_cypher_vector_behavior.py index dc97e03d..47b85b05 100644 --- a/tests/test_cypher_vector_behavior.py +++ b/tests/test_cypher_vector_behavior.py @@ -374,7 +374,8 @@ def test_drop_index_drops_it_and_if_exists_does_not_raise_when_it_is_gone(temp_d temp_db.command("opencypher", "DROP INDEX article_embedding") assert not temp_db.schema.exists_index("article_embedding") - with pytest.raises(ArcadeDBError, match="does not exist"): + # 26.11.1 says "does not exist"; engines with ArcadeData/arcadedb@9c89c306fa (IndexDropFailedException) say "There is no such index". + with pytest.raises(ArcadeDBError, match="does not exist|There is no such index"): temp_db.command("opencypher", "DROP INDEX article_embedding") temp_db.command("opencypher", "DROP INDEX article_embedding IF EXISTS")