diff --git a/tests/test_cypher_vector_behavior.py b/tests/test_cypher_vector_behavior.py index 47b85b05..ce165b4f 100644 --- a/tests/test_cypher_vector_behavior.py +++ b/tests/test_cypher_vector_behavior.py @@ -155,7 +155,11 @@ def test_search_mistakes_raise_arcadedb_error(db): "MATCH (d:Doc) SEARCH x IN (VECTOR INDEX `Doc[embedding]` FOR $vec LIMIT 2) " "RETURN d.name AS name" ) - with pytest.raises(ArcadeDBError, match="'x' must be a node variable"): + # 26.11.1 says "'x' must be a node variable"; the engine that added SEARCH over relationships + # (ArcadeData/arcadedb CypherVectorQueryRelationshipsTest) says "'x' must be a node or relationship variable". + with pytest.raises( + ArcadeDBError, match="'x' must be a node( or relationship)? variable" + ): db.query("opencypher", bad_variable, {"vec": QUERY}).to_list() optional = (