File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ def test_transaction_commit(self):
151
151
cursor = session .run ("MATCH (p:Person {name: 'The One'}) RETURN count(p)" )
152
152
assert cursor .next ()
153
153
assert cursor ["count(p)" ] == 1
154
- assert cursor .at_end ()
154
+ assert cursor .at_end
155
155
session .close ()
156
156
157
157
def test_transaction_rollback (self ):
@@ -165,7 +165,7 @@ def test_transaction_rollback(self):
165
165
cursor = session .run ("MATCH (p:Person {name: 'The One'}) RETURN count(p)" )
166
166
assert cursor .next ()
167
167
assert cursor ["count(p)" ] == 0
168
- assert cursor .at_end ()
168
+ assert cursor .at_end
169
169
session .close ()
170
170
171
171
def test_result_summary_query_profile (self ):
Original file line number Diff line number Diff line change @@ -176,6 +176,7 @@ def position(self):
176
176
"""
177
177
return self ._position
178
178
179
+ @property
179
180
def at_end (self ):
180
181
""" Return ``True`` if at the end of the record stream, ``False``
181
182
otherwise.
@@ -186,7 +187,7 @@ def at_end(self):
186
187
return True
187
188
else :
188
189
self ._connection .fetch ()
189
- return self .at_end ()
190
+ return self .at_end
190
191
191
192
def stream (self ):
192
193
""" Yield all subsequent records.
You can’t perform that action at this time.
0 commit comments