From 43e6a43f927eead7cafce2405d90ae225a11d13a Mon Sep 17 00:00:00 2001 From: Eric Nguyen Date: Thu, 1 Feb 2024 10:40:29 +0100 Subject: [PATCH] test: fix failing test --- backend/sample/dump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/sample/dump.py b/backend/sample/dump.py index 43ae24a3..c20913ab 100755 --- a/backend/sample/dump.py +++ b/backend/sample/dump.py @@ -17,7 +17,7 @@ def get_session(uri=DEFAULT_URL): def dump_nodes(session, file): """Dump all nodes from the database to a JSON file.""" node_count = session.run("MATCH (n) RETURN count(n)").single()[0] - for i, node in enumerate(session.run("MATCH (n) RETURN n")): + for i, node in enumerate(session.run("MATCH (n) RETURN n ORDER BY n.src_position")): node_dict = dict(node["n"]) labels_list = list(node["n"].labels) node_dict["labels"] = labels_list