def test_option_add_all(): """ add several random options """ bulk = Bulk(test=True) bulk.exports('contacts') bulk.add_options(identifierFieldName='C_EmailAddress', areSystemTimestampsInUTC=True) assert len(bulk.job['options']) == 2
def test_option_add(): """ add a random option """ bulk = Bulk(test=True) bulk.exports('contacts') bulk.add_options(identifierFieldName='C_EmailAddress') assert bulk.job['options']['identifierFieldName'] == 'C_EmailAddress'