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

Method test_check_valid

tests/test_validators.py:917–924  ·  view source on GitHub ↗

Silent if value {op} bound.

(self, v, value)

Source from the content-addressed store, hash-verified

915 ],
916 )
917 def test_check_valid(self, v, value):
918 """Silent if value {op} bound."""
919
920 @attr.s
921 class Tester:
922 value = attr.ib(validator=v(self.BOUND))
923
924 Tester(value) # shouldn't raise exceptions
925
926 @pytest.mark.parametrize(
927 ("v", "value"),

Callers

nothing calls this directly

Calls 1

TesterClass · 0.70

Tested by

no test coverage detected