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

Method test_normal

tests/test_make.py:190–199  ·  view source on GitHub ↗

Transforms every `_CountingAttr` and leaves others (a) be.

(self)

Source from the content-addressed store, hash-verified

188 assert None is getattr(C, "__attrs_attrs__", None)
189
190 def test_normal(self):
191 """
192 Transforms every `_CountingAttr` and leaves others (a) be.
193 """
194 C = make_tc()
195 attrs, _, _ = _transform_attrs(
196 C, None, False, ClassProps.KeywordOnly.NO, True, None
197 )
198
199 assert ["z", "y", "x"] == [a.name for a in attrs]
200
201 def test_empty(self):
202 """

Callers

nothing calls this directly

Calls 2

_transform_attrsFunction · 0.90
make_tcFunction · 0.85

Tested by

no test coverage detected