Exemplo 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'
Exemplo 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'
Exemplo 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
Exemplo 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
Exemplo 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
Exemplo 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
Exemplo 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
Exemplo 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'
Exemplo 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'
Exemplo 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'
Exemplo 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
Exemplo 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
Exemplo 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
Exemplo 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
Exemplo 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
Exemplo 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'