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

Method test_check_valid

tests/test_validators.py:1060–1070  ·  view source on GitHub ↗

Silent if len(value) => min_len. Values can be strings and other iterables.

(self, value)

Source from the content-addressed store, hash-verified

1058 ],
1059 )
1060 def test_check_valid(self, value):
1061 """
1062 Silent if len(value) => min_len.
1063 Values can be strings and other iterables.
1064 """
1065
1066 @attr.s
1067 class Tester:
1068 value = attr.ib(validator=min_len(self.MIN_LENGTH))
1069
1070 Tester(value) # shouldn't raise exceptions
1071
1072 @pytest.mark.parametrize(
1073 "value",

Callers

nothing calls this directly

Calls 1

TesterClass · 0.70

Tested by

no test coverage detected