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')
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')
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']
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']
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()
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()