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

Method test_success

tests/test_converters.py:231–241  ·  view source on GitHub ↗

Succeeds if all wrapped converters succeed.

(self)

Source from the content-addressed store, hash-verified

229
230class TestPipe:
231 def test_success(self):
232 """
233 Succeeds if all wrapped converters succeed.
234 """
235 c = pipe(str, Converter(to_bool), bool)
236
237 assert (
238 True
239 is c.converter("True", None, None)
240 is c.converter(True, None, None)
241 )
242
243 def test_fail(self):
244 """

Callers

nothing calls this directly

Calls 2

ConverterClass · 0.90
pipeFunction · 0.50

Tested by

no test coverage detected