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
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