Ejemplo n.º 1
0
def test_user_show():
    results = get.user_list(client=client.Client(), q='', order_by='')
    assert results['success'] is True
    assert len(results['result']) > 0
    assert isinstance(results['result'][0], dict)
    id = results['result'][0]['id']
    name = results['result'][0]['name']
    results = get.user_show(client=client.Client(), id=id)
    assert results['result']['id'] == id
    assert results['result']['name'] == name
Ejemplo n.º 2
0
def test_user_show():
    results = get.user_list(client=client.Client(), q='', order_by='')
    assert results['success'] is True
    assert len(results['result']) > 0
    assert isinstance(results['result'][0], dict)
    id = results['result'][0]['id']
    name = results['result'][0]['name']
    results = get.user_show(client=client.Client(), id=id)
    assert results['result']['id'] == id
    assert results['result']['name'] == name
Ejemplo n.º 3
0
def test_user_autocomplete():
    results = get.user_list(client=client.Client(), q='', order_by='')
    assert results['success'] is True
    assert len(results['result']) > 0
    assert isinstance(results['result'][0], dict)
    name = results['result'][0]['name']
    assert name != ''
    results = get.user_autocomplete(client=client.Client(), q=name[:3])
    assert results['success'] is True
    found = False
    for result in results['result']:
        if result['name'] == name:
            found = True
    assert found == True
Ejemplo n.º 4
0
def test_user_autocomplete():
    results = get.user_list(client=client.Client(), q='', order_by='')
    assert results['success'] is True
    assert len(results['result']) > 0
    assert isinstance(results['result'][0], dict)
    name = results['result'][0]['name']
    assert name != ''
    results = get.user_autocomplete(client=client.Client(), q=name[:3])
    assert results['success'] is True
    found = False
    for result in results['result']:
        if result['name'] == name:
            found = True
    assert found == True
Ejemplo n.º 5
0
def test_user_list():
    results = get.user_list(client=client.Client(), q='', order_by='')
    assert results['success'] is True
    assert len(results['result']) > 0
    assert isinstance(results['result'][0], dict)
    assert results['result'][0]['name'] != ''
Ejemplo n.º 6
0
def test_user_list():
    results = get.user_list(client=client.Client(), q='', order_by='')
    assert results['success'] is True
    assert len(results['result']) > 0
    assert isinstance(results['result'][0], dict)
    assert results['result'][0]['name'] != ''
Ejemplo n.º 7
0
def test_user_show():
    results = get.user_list(q=123, order_by=321)