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

Method test_fmt_converter_call

tests/test_converters.py:52–61  ·  view source on GitHub ↗

_fmt_converter_call determines the arguments to the wrapped converter according to `takes_self` and `takes_field`.

(self, scenario)

Source from the content-addressed store, hash-verified

50 ],
51 )
52 def test_fmt_converter_call(self, scenario):
53 """
54 _fmt_converter_call determines the arguments to the wrapped converter
55 according to `takes_self` and `takes_field`.
56 """
57 (takes_self, takes_field), expect = scenario
58
59 c = Converter(None, takes_self=takes_self, takes_field=takes_field)
60
61 assert expect == c._fmt_converter_call("le_name", "le_value")
62
63 def test_works_as_adapter(self):
64 """

Callers

nothing calls this directly

Calls 2

_fmt_converter_callMethod · 0.95
ConverterClass · 0.90

Tested by

no test coverage detected