Esempio n. 1
0
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'
Esempio n. 2
0
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'
Esempio n. 3
0
def test_setup_bad_obj():
    """ setup obj_id required for events """
    bulk = Bulk(test=True)
    bulk._setup_('imports', 'bad')  # pylint: disable=W0212
Esempio n. 4
0
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
Esempio n. 5
0
def test_setup_actvty_type_req():
    """ setup act_type required for activities """
    bulk = Bulk(test=True)
    bulk._setup_('imports', 'activities')  # pylint: disable=W0212
Esempio n. 6
0
def test_setup_cdo_id_req():
    """ setup obj_id required for customobjects """
    bulk = Bulk(test=True)
    bulk._setup_('imports', 'customobjects')  # pylint: disable=W0212
Esempio n. 7
0
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
Esempio n. 8
0
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'
Esempio n. 9
0
def test_setup_object():
    """ setup set object """
    bulk = Bulk(test=True)
    bulk._setup_('imports', 'contacts')  # pylint: disable=W0212
    assert bulk.job['elq_object'] == 'contacts'
Esempio n. 10
0
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'
Esempio n. 11
0
def test_setup_bad_obj():
    """ setup obj_id required for events """
    bulk = Bulk(test=True)
    bulk._setup_('imports', 'bad')  # pylint: disable=W0212
Esempio n. 12
0
def test_setup_actvty_type_req():
    """ setup act_type required for activities """
    bulk = Bulk(test=True)
    bulk._setup_('imports', 'activities')  # pylint: disable=W0212
Esempio n. 13
0
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
Esempio n. 14
0
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
Esempio n. 15
0
def test_setup_cdo_id_req():
    """ setup obj_id required for customobjects """
    bulk = Bulk(test=True)
    bulk._setup_('imports', 'customobjects')  # pylint: disable=W0212
Esempio n. 16
0
def test_setup_object():
    """ setup set object """
    bulk = Bulk(test=True)
    bulk._setup_('imports', 'contacts')  # pylint: disable=W0212
    assert bulk.job['elq_object'] == 'contacts'