MCPcopy
hub / github.com/python-attrs/attrs / test_success_with_none

Method test_success_with_none

tests/test_validators.py:349–354  ·  view source on GitHub ↗

Nothing happens if None.

(self, validator)

Source from the content-addressed store, hash-verified

347 v(None, simple_attr("test"), 42)
348
349 def test_success_with_none(self, validator):
350 """
351 Nothing happens if None.
352 """
353 v = optional(validator)
354 v(None, simple_attr("test"), None)
355
356 def test_fail(self, validator):
357 """

Callers

nothing calls this directly

Calls 2

optionalFunction · 0.90
simple_attrFunction · 0.85

Tested by

no test coverage detected