Skip to content

Commit ff59dd1

Browse files
committed
test(integration): use DETACH DELETE in label cleanup for consistency
Aligns test_get_labels_returns_list cleanup with the rest of the suite. DETACH DELETE is safe even if the node gains relationships in future tests.
1 parent df5f83d commit ff59dd1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/integration/test_sdk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def test_get_labels_returns_list(client):
224224
names = [lbl.name for lbl in labels]
225225
assert label_name in names, f"{label_name} not in {names}"
226226
finally:
227-
client.cypher(f"MATCH (n:{label_name} {{tag: $tag}}) DELETE n", params={"tag": tag})
227+
client.cypher(f"MATCH (n:{label_name} {{tag: $tag}}) DETACH DELETE n", params={"tag": tag})
228228

229229

230230
def test_get_labels_has_property_definitions(client):

0 commit comments

Comments
 (0)