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

Method test_empty

tests/test_make.py:201–212  ·  view source on GitHub ↗

No attributes works as expected.

(self)

Source from the content-addressed store, hash-verified

199 assert ["z", "y", "x"] == [a.name for a in attrs]
200
201 def test_empty(self):
202 """
203 No attributes works as expected.
204 """
205
206 @attr.s
207 class C:
208 pass
209
210 assert _Attributes((), [], {}) == _transform_attrs(
211 C, None, False, ClassProps.KeywordOnly.NO, True, None
212 )
213
214 def test_transforms_to_attribute(self):
215 """

Callers

nothing calls this directly

Calls 2

_AttributesClass · 0.90
_transform_attrsFunction · 0.90

Tested by

no test coverage detected