def test_delete_all(self): call_logs = (self._mock_call_log(), self._mock_call_log()) call_log_dao.create_from_list(call_logs) call_log_dao.delete_all() call_log_rows = self.session.query(CallLogSchema).all() assert_that(call_log_rows, has_length(0))
def delete_all(): dao.delete_all()