Skip to content

Commit 812a6bf

Browse files
authored
tests: add test case for test_execute_empty_result (#89)
1 parent 8e6aee6 commit 812a6bf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

es/tests/test_dbapi.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ def test_execute_empty_results(self):
112112
).fetchall()
113113
self.assertEquals(len(rows), 0)
114114

115+
count = self.cursor.execute(
116+
"select Carrier from flights where Carrier='NORESULT'"
117+
).rowcount
118+
self.assertEquals(count, 0)
119+
115120
def test_execute_rowcount(self):
116121
"""
117122
DBAPI: Test execute and rowcount

0 commit comments

Comments
 (0)