Skip to content

Commit cdcadbf

Browse files
Fix regex in test
1 parent 1f910d2 commit cdcadbf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/async_/test_migration_neo4j_5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async def test_read_elements_id():
5151
else:
5252
# Nodes' ids
5353
expected_error_type = ValueError
54-
expected_error_message = "id is deprecated in Neo4j version 5, please migrate to element_id\. If you use the id in a Cypher query, replace id\(\) by elementId\(\)\."
54+
expected_error_message = "id is deprecated in Neo4j version 5, please migrate to element_id\\. If you use the id in a Cypher query, replace id\\(\\) by elementId\\(\\)\\."
5555
assert isinstance(lex_hives.element_id, str)
5656
with pytest.raises(
5757
expected_error_type,

test/sync_/test_migration_neo4j_5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_read_elements_id():
5151
else:
5252
# Nodes' ids
5353
expected_error_type = ValueError
54-
expected_error_message = "id is deprecated in Neo4j version 5, please migrate to element_id\. If you use the id in a Cypher query, replace id\(\) by elementId\(\)\."
54+
expected_error_message = "id is deprecated in Neo4j version 5, please migrate to element_id\\. If you use the id in a Cypher query, replace id\\(\\) by elementId\\(\\)\\."
5555
assert isinstance(lex_hives.element_id, str)
5656
with pytest.raises(
5757
expected_error_type,

0 commit comments

Comments
 (0)