Skip to content

Commit 2fd60cb

Browse files
committed
latest neokit; Counters->SummaryCounters
1 parent 4d9e8f2 commit 2fd60cb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

neo4j/v1/session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def __init__(self, statement, parameters, **metadata):
270270
self.statement = statement
271271
self.parameters = parameters
272272
self.statement_type = metadata.get("type")
273-
self.counters = Counters(metadata.get("stats", {}))
273+
self.counters = SummaryCounters(metadata.get("stats", {}))
274274
if "plan" in metadata:
275275
self.plan = make_plan(metadata["plan"])
276276
if "profile" in metadata:
@@ -285,7 +285,7 @@ def __init__(self, statement, parameters, **metadata):
285285
notification["description"], notification["severity"], position))
286286

287287

288-
class Counters(object):
288+
class SummaryCounters(object):
289289
""" Set of statistics from a Cypher statement execution.
290290
"""
291291

neokit

test/test_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def test_can_obtain_notification_info(self):
308308

309309
assert len(notifications) == 1
310310
notification = notifications[0]
311-
assert notification.code == "Neo.ClientNotification.Statement.CartesianProduct"
311+
assert notification.code == "Neo.ClientNotification.Statement.CartesianProductWarning"
312312
assert notification.title == "This query builds a cartesian product between " \
313313
"disconnected patterns."
314314
assert notification.severity == "WARNING"

0 commit comments

Comments
 (0)