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

Method test_success_member_only

tests/test_validators.py:499–506  ·  view source on GitHub ↗

If the member validator succeeds and the iterable validator is not set, nothing happens.

(self, member_validator)

Source from the content-addressed store, hash-verified

497 assert deep_iterable.__name__ in validator_module.__all__
498
499 def test_success_member_only(self, member_validator):
500 """
501 If the member validator succeeds and the iterable validator is not set,
502 nothing happens.
503 """
504 v = deep_iterable(member_validator)
505 a = simple_attr("test")
506 v(None, a, [42])
507
508 def test_success_member_and_iterable(self, member_validator):
509 """

Callers

nothing calls this directly

Calls 2

deep_iterableFunction · 0.90
simple_attrFunction · 0.85

Tested by

no test coverage detected