MCPcopy
hub / github.com/pydantic/pydantic / test_url_constraints_hash_inequal

Function test_url_constraints_hash_inequal

tests/test_networks.py:886–895  ·  view source on GitHub ↗
(changes)

Source from the content-addressed store, hash-verified

884 ],
885)
886def test_url_constraints_hash_inequal(changes):
887 options = {
888 'max_length': 1,
889 'allowed_schemes': ['scheme'],
890 'host_required': False,
891 'default_host': 'host',
892 'default_port': 0,
893 'default_path': 'path',
894 }
895 assert hash(UrlConstraints(**options)) != hash(UrlConstraints(**{**options, **changes}))
896
897
898def test_json():

Callers

nothing calls this directly

Calls 1

UrlConstraintsClass · 0.90

Tested by

no test coverage detected