コード例 #1
0
    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))
コード例 #2
0
ファイル: test_dao.py プロジェクト: jaunis/xivo-dao
    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))
コード例 #3
0
def delete_all():
    dao.delete_all()
コード例 #4
0
def delete_all():
    dao.delete_all()