本文整理汇总了Python中pyeloqua.Bulk.get_sync_rejects方法的典型用法代码示例。如果您正苦于以下问题:Python Bulk.get_sync_rejects方法的具体用法?Python Bulk.get_sync_rejects怎么用?Python Bulk.get_sync_rejects使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyeloqua.Bulk
的用法示例。
在下文中一共展示了Bulk.get_sync_rejects方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_get_sync_rejects_call
# 需要导入模块: from pyeloqua import Bulk [as 别名]
# 或者: from pyeloqua.Bulk import get_sync_rejects [as 别名]
def test_get_sync_rejects_call(mock_data):
""" get logs from a sync - method call """
bulk = Bulk(test=True)
bulk.exports('contacts')
bulk.job_sync = SYNC_RESPONSE_SUCCESS
mock_data.return_value = RETURN_SYNC_REJECTS['items']
bulk.get_sync_rejects()
mock_data.assert_called_with(endpoint='/syncs/1/rejects')
示例2: test_get_sync_rejects_rt
# 需要导入模块: from pyeloqua import Bulk [as 别名]
# 或者: from pyeloqua.Bulk import get_sync_rejects [as 别名]
def test_get_sync_rejects_rt(mock_data):
""" get logs from a sync - return data """
bulk = Bulk(test=True)
bulk.exports('contacts')
bulk.job_sync = SYNC_RESPONSE_SUCCESS
mock_data.return_value = RETURN_SYNC_REJECTS['items']
data = bulk.get_sync_rejects()
assert data == RETURN_SYNC_REJECTS['items']
示例3: test_get_sync_rejects_notexp
# 需要导入模块: from pyeloqua import Bulk [as 别名]
# 或者: from pyeloqua.Bulk import get_sync_rejects [as 别名]
def test_get_sync_rejects_notexp(mock_data):
""" get logs from a sync - exception """
bulk = Bulk(test=True)
bulk.imports('contacts')
mock_data.return_value = RETURN_SYNC_REJECTS['items']
bulk.get_sync_rejects()