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

Method test_transforms_to_attribute

tests/test_make.py:214–225  ·  view source on GitHub ↗

All `_CountingAttr`s are transformed into `Attribute`s.

(self)

Source from the content-addressed store, hash-verified

212 )
213
214 def test_transforms_to_attribute(self):
215 """
216 All `_CountingAttr`s are transformed into `Attribute`s.
217 """
218 C = make_tc()
219 attrs, base_attrs, _ = _transform_attrs(
220 C, None, False, ClassProps.KeywordOnly.NO, True, None
221 )
222
223 assert [] == base_attrs
224 assert 3 == len(attrs)
225 assert all(isinstance(a, Attribute) for a in attrs)
226
227 def test_conflicting_defaults(self):
228 """

Callers

nothing calls this directly

Calls 2

_transform_attrsFunction · 0.90
make_tcFunction · 0.85

Tested by

no test coverage detected