def test_check_url_filetoupload(self, configuration): resource_data = copy.deepcopy(TestResource.resource_data) resource = Resource(resource_data) resource.check_url_filetoupload() resource.set_file_to_upload('abc') resource.check_url_filetoupload() resource['url'] = 'lala' with pytest.raises(HDXError): resource.check_url_filetoupload()
def test_check_required_fields(self, configuration): resource_data = copy.deepcopy(TestResource.resource_data) resource = Resource(resource_data) resource.check_url_filetoupload() resource.check_required_fields()