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
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
def test_resource_status_show(): results = get.resource_status_show(id=-666) if results['result']['message']: raise exceptions.CKANError('Fake Error')