Skip to content

Commit 16c7e1e

Browse files
committed
at_end()->at_end
1 parent 48c180d commit 16c7e1e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

examples/test_examples.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def test_transaction_commit(self):
151151
cursor = session.run("MATCH (p:Person {name: 'The One'}) RETURN count(p)")
152152
assert cursor.next()
153153
assert cursor["count(p)"] == 1
154-
assert cursor.at_end()
154+
assert cursor.at_end
155155
session.close()
156156

157157
def test_transaction_rollback(self):
@@ -165,7 +165,7 @@ def test_transaction_rollback(self):
165165
cursor = session.run("MATCH (p:Person {name: 'The One'}) RETURN count(p)")
166166
assert cursor.next()
167167
assert cursor["count(p)"] == 0
168-
assert cursor.at_end()
168+
assert cursor.at_end
169169
session.close()
170170

171171
def test_result_summary_query_profile(self):

neo4j/v1/session.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ def position(self):
176176
"""
177177
return self._position
178178

179+
@property
179180
def at_end(self):
180181
""" Return ``True`` if at the end of the record stream, ``False``
181182
otherwise.
@@ -186,7 +187,7 @@ def at_end(self):
186187
return True
187188
else:
188189
self._connection.fetch()
189-
return self.at_end()
190+
return self.at_end
190191

191192
def stream(self):
192193
""" Yield all subsequent records.

0 commit comments

Comments
 (0)