We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8fcacf commit c939d9bCopy full SHA for c939d9b
tests.py
@@ -67,6 +67,18 @@ def test_get_cursor_gets_a_cursor(self):
67
actual = cursor.fetchall()
68
assert actual == [{"bar": "baz"}, {"bar": "buz"}]
69
70
+ def test_we_can_use_cursor_rowcount(self):
71
+ with self.db.get_cursor() as cursor:
72
+ cursor.execute("SELECT * FROM foo ORDER BY bar")
73
+ actual = cursor.rowcount
74
+ assert actual == 2
75
+
76
+ def test_we_can_use_cursor_closed(self):
77
78
79
+ actual = cursor.closed
80
+ assert not actual
81
82
83
class TestTransaction(WithData):
84
0 commit comments