MCPcopy
hub / github.com/pydantic/pydantic / test_url_constraints_hash_equal

Function test_url_constraints_hash_equal

tests/test_networks.py:856–866  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

854 ],
855)
856def test_url_constraints_hash_equal(options):
857 defaults = {
858 'max_length': 1,
859 'allowed_schemes': ['scheme'],
860 'host_required': False,
861 'default_host': 'host',
862 'default_port': 0,
863 'default_path': 'path',
864 }
865 options = {**defaults, **options}
866 assert hash(UrlConstraints(**options)) == hash(UrlConstraints(**options))
867
868
869@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

UrlConstraintsClass · 0.90

Tested by

no test coverage detected