Skip to content

Commit

Permalink
Add missing assert call in test_dbapi_hook.py (apache#10842)
Browse files Browse the repository at this point in the history
`assert` call was missing so the statement didn't test or wouldn't fail if condition isn't true
  • Loading branch information
kaxil authored Sep 9, 2020
1 parent 0d38cf1 commit ee8b02a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/hooks/test_dbapi_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def test_get_records_exception(self):
with self.assertRaises(RuntimeError):
self.db_hook.get_records(statement)

self.conn.close.call_count == 1
self.cur.close.call_count == 1
assert self.conn.close.call_count == 1
assert self.cur.close.call_count == 1
self.cur.execute.assert_called_once_with(statement)

def test_insert_rows(self):
Expand Down

0 comments on commit ee8b02a

Please sign in to comment.