Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_cannot_override_built_in_parser(self, set_env, env):
def https_url(value):
return "https://" + value
with pytest.raises(environs.ParserConflictError):
env.add_parser("url", https_url)