But then I thought "aren't the ignore_localhost and ignore_hosts parameters from the vcr_config basically the same as allowed_hosts?". VCRpy is adding localhost, 0.0.0.0 and 127.0.0.1 if ignore_localhostis truthy, and also adds ignore_hosts to the set.
I think it would make for a more seamless integration with vcrpy if allowed_hosts is also using ignore_localhost and ignore_hosts from the vcr_config to construct the list while retaining backwards compatibility :-)
This is kinda a chimeric issue. Related to my https://github.com/kiwicom/pytest-recording/issues/68,
block_network
should also have the option to setallowed_hosts
via vcr_config, imho.But then I thought "aren't the
ignore_localhost
andignore_hosts
parameters from the vcr_config basically the same as allowed_hosts?". VCRpy is adding localhost, 0.0.0.0 and 127.0.0.1 ifignore_localhost
is truthy, and also addsignore_hosts
to the set.I think it would make for a more seamless integration with vcrpy if
allowed_hosts
is also usingignore_localhost
andignore_hosts
from the vcr_config to construct the list while retaining backwards compatibility :-)