예제 #1
0
def test_resource_status_show():
    results = get.resource_search(client=client.Client(), query='name:csv')
    assert results['success'] is True
    if results['result']['count'] > 0:
        id = results['result']['results'][0]['id']
        results = get.resource_status_show(client=client.Client(), id=id)
        assert results['success'] is True
예제 #2
0
def test_resource_status_show():
    results = get.resource_search(client=client.Client(),
        query='name:csv')
    assert results['success'] is True
    if results['result']['count'] > 0:
        id = results['result']['results'][0]['id']
        results = get.resource_status_show(client=client.Client(), id=id)
        assert results['success'] is True
예제 #3
0
def test_task_status_show():
    results = get.resource_search(client=client.Client(),
                                  query='name:bus-stops')
    assert results['success'] is True
    if results['result']['count'] > 0:
        id = results['result']['results'][0]['id']
        results = get.resource_status_show(client=client.Client(), id=id)
        assert results['success'] is True
        if results['result']['message']:
            return
        results = get.task_status_show(client=client.Client(), entity_id=id)
        assert results['success'] is True
예제 #4
0
def test_task_status_show():
    results = get.resource_search(client=client.Client(),
        query='name:bus-stops')
    assert results['success'] is True
    if results['result']['count'] > 0:
        id = results['result']['results'][0]['id']
        results = get.resource_status_show(client=client.Client(), id=id)
        assert results['success'] is True
        if results['result']['message']:
            return
        results = get.task_status_show(client=client.Client(), entity_id=id)
        assert results['success'] is True
예제 #5
0
def test_resource_status_show():
    results = get.resource_status_show(id=-666)
    if results['result']['message']:
        raise exceptions.CKANError('Fake Error')