File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 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):
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 ):
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments