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

Method test_success

tests/test_validators.py:822–828  ·  view source on GitHub ↗

If the value is callable, nothing happens.

(self)

Source from the content-addressed store, hash-verified

820 assert is_callable.__name__ in validator_module.__all__
821
822 def test_success(self):
823 """
824 If the value is callable, nothing happens.
825 """
826 v = is_callable()
827 a = simple_attr("test")
828 v(None, a, isinstance)
829
830 def test_fail(self):
831 """

Callers

nothing calls this directly

Calls 2

is_callableFunction · 0.90
simple_attrFunction · 0.85

Tested by

no test coverage detected