I have a library that needs to pull the same path from 2 different hosts. I couldn't get this to work, and that's because urllib3-mock ignores the host property of the url. It should be able to add a host property to the set of urls and, if that property is not None, check it.
It's not great that the terminology used here is "URL" but what is meant is "that part of the URL that follows the host spec."
Maybe add a check to the url and raise an error if the user provides a value with a : in it, where presence of the colon is diagnostic of a full URL, instead of just a path.
I have a library that needs to pull the same path from 2 different hosts. I couldn't get this to work, and that's because urllib3-mock ignores the
hostproperty of the url. It should be able to add ahostproperty to the set of urls and, if that property is notNone, check it.It's not great that the terminology used here is "URL" but what is meant is "that part of the URL that follows the host spec."
Maybe add a check to the url and raise an error if the user provides a value with a
:in it, where presence of the colon is diagnostic of a full URL, instead of just a path.