Ejemplo n.º 1
0
def resource_without_dataset(valid_dataset):
    resource = Resource()
    resource.url = "http://smth.smwhere.com"
    resource.title = "Resource name"
    resource.is_external = True
    resource.resource_type = "Table"
    # resource.dataset = valid_dataset
    resource.save()
    return resource
Ejemplo n.º 2
0
def resource_without_dataset(valid_dataset):
    resource = Resource()
    resource.link = "http://falconframework.org"
    resource.title = "Resource name"
    resource.is_external = True
    resource.resource_type = "Table"
    # resource.dataset = valid_dataset
    resource.tracker.saved_data['link'] = resource.link
    resource.tracker.saved_data['file'] = resource.file

    resource.save()
    return resource