MCPcopy Index your code
hub / github.com/python-attrs/attrs / test_key_validator_can_be_none

Method test_key_validator_can_be_none

tests/test_validators.py:773–780  ·  view source on GitHub ↗

The key validator can be None.

(self)

Source from the content-addressed store, hash-verified

771 )
772
773 def test_key_validator_can_be_none(self):
774 """
775 The key validator can be None.
776 """
777 v = deep_mapping(value_validator=instance_of(int))
778 a = simple_attr("test")
779
780 v(None, a, {"a": 6, "b": 7})
781
782 def test_value_validator_can_be_none(self):
783 """

Callers

nothing calls this directly

Calls 3

deep_mappingFunction · 0.90
instance_ofFunction · 0.90
simple_attrFunction · 0.85

Tested by

no test coverage detected