Ejemplo n.º 1
0
def test_related_show():
    packages = get.package_list(client=client.Client())
    assert len(packages['result']) > 0
    import random
    pkg = random.choice(packages['result'])
    results = get.related_list(client=client.Client(), id=pkg)
    assert results['success'] is True
    assert isinstance(results['result'], list)
    if len(results['result']) > 0:
        results = get.related_show(id=results['result'][0]['id'])
        assert results['success'] is True
Ejemplo n.º 2
0
def test_related_show():
    results = get.related_show(id=9899)