def test_setup_actvty(): """ setup sets obj_id """ bulk = Bulk(test=True) bulk._setup_( 'imports', 'activities', # pylint: disable=W0212 act_type='EmailOpen') assert bulk.job['act_type'] == 'EmailOpen'
def test_setup_type(): """ setup set job_type """ bulk = Bulk(test=True) bulk._setup_('imports', 'contacts') # pylint: disable=W0212 assert bulk.job['job_type'] == 'imports'
def test_setup_bad_obj(): """ setup obj_id required for events """ bulk = Bulk(test=True) bulk._setup_('imports', 'bad') # pylint: disable=W0212
def test_setup_event(): """ setup sets obj_id """ bulk = Bulk(test=True) bulk._setup_('imports', 'events', 1) # pylint: disable=W0212 assert bulk.job['obj_id'] == 1
def test_setup_actvty_type_req(): """ setup act_type required for activities """ bulk = Bulk(test=True) bulk._setup_('imports', 'activities') # pylint: disable=W0212
def test_setup_cdo_id_req(): """ setup obj_id required for customobjects """ bulk = Bulk(test=True) bulk._setup_('imports', 'customobjects') # pylint: disable=W0212
def test_setup_cdo(): """ setup sets obj_id """ bulk = Bulk(test=True) bulk._setup_('imports', 'customobjects', 1) # pylint: disable=W0212 assert bulk.job['obj_id'] == 1
def test_setup_type(): """ setup set job_type """ bulk = Bulk(test=True) bulk._setup_('imports', 'contacts') # pylint: disable=W0212 assert bulk.job['job_type'] == 'imports'
def test_setup_object(): """ setup set object """ bulk = Bulk(test=True) bulk._setup_('imports', 'contacts') # pylint: disable=W0212 assert bulk.job['elq_object'] == 'contacts'
def test_setup_actvty(): """ setup sets obj_id """ bulk = Bulk(test=True) bulk._setup_('imports', 'activities', # pylint: disable=W0212 act_type='EmailOpen') assert bulk.job['act_type'] == 'EmailOpen'
def test_setup_bad_obj(): """ setup obj_id required for events """ bulk = Bulk(test=True) bulk._setup_('imports', 'bad') # pylint: disable=W0212
def test_setup_actvty_type_req(): """ setup act_type required for activities """ bulk = Bulk(test=True) bulk._setup_('imports', 'activities') # pylint: disable=W0212
def test_setup_event(): """ setup sets obj_id """ bulk = Bulk(test=True) bulk._setup_('imports', 'events', 1) # pylint: disable=W0212 assert bulk.job['obj_id'] == 1
def test_setup_cdo(): """ setup sets obj_id """ bulk = Bulk(test=True) bulk._setup_('imports', 'customobjects', 1) # pylint: disable=W0212 assert bulk.job['obj_id'] == 1
def test_setup_cdo_id_req(): """ setup obj_id required for customobjects """ bulk = Bulk(test=True) bulk._setup_('imports', 'customobjects') # pylint: disable=W0212
def test_setup_object(): """ setup set object """ bulk = Bulk(test=True) bulk._setup_('imports', 'contacts') # pylint: disable=W0212 assert bulk.job['elq_object'] == 'contacts'