def _process_output(self, output, convert_objects=False): """Process the output response, whether it is actual data or a URL to a file. Args: output (owslib.wps.Output): convert_objects: If True, object_converters will be used. """ # Get the data for recognized types. if output.data: data_type = output.dataType if data_type is None: data_type = self._wps_outputs[output.identifier].dataType data = [utils.from_owslib(d, data_type) for d in output.data] return delist(data) if convert_objects: return convert(output, self._path, self._converters) else: return output.reference
def test_delist(): # noqa: D103 assert utils.delist(["one", "two"]) == ["one", "two"] assert utils.delist(["one"]) == "one" assert utils.delist("one") == "one"
def test_delist(): assert utils.delist(['one', 'two']) == ['one', 'two'] assert utils.delist([ 'one', ]) == 'one' assert utils.delist('one') == 'one'
def test_delist(): assert utils.delist(['one', 'two']) == ['one', 'two'] assert utils.delist(['one', ]) == 'one' assert utils.delist('one') == 'one'