Closed corrado9999 closed 4 years ago
@corrado9999 Thanks for reporting. Would you like to add a PR? You can also update the tests.
When "testing the test" I got an unexpected error due to this test
if components[0] and components[1]:
return components
else:
raise InvalidParameterValue(
'The value "{}" does not seem to be of type anyURI'.format(inpt))
because, with a "file" schema, the netloc part of the URL (components[1] in the code) is always empty. Does it make sense to explicitly check for this schema and avoid to test the second component for it? Are there other schemas like that?
@corrado9999 I would handle the file
URL separate ... not sure if there are more cases.
Description
convert_anyURI
callspywps._compat.urlparse.urlparse
instead ofpywps._compat.urlparse
Environment
Steps to Reproduce
Additional Information
The fix is very easy (change
urlparse.urlparse
tourlparse
), not sure if you would like a pull request. Anyway, I noticed that tests/test_literaltypes.py does not test such data type. Perhaps something likemay be enough?