Skip to content

Commit

Permalink
tests: add test case for test_execute_empty_result (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
vchrombie authored May 2, 2022
1 parent 8e6aee6 commit 812a6bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions es/tests/test_dbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ def test_execute_empty_results(self):
).fetchall()
self.assertEquals(len(rows), 0)

count = self.cursor.execute(
"select Carrier from flights where Carrier='NORESULT'"
).rowcount
self.assertEquals(count, 0)

def test_execute_rowcount(self):
"""
DBAPI: Test execute and rowcount
Expand Down

0 comments on commit 812a6bf

Please sign in to comment.