All `_CountingAttr`s are transformed into `Attribute`s.
(self)
| 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 | """ |
nothing calls this directly
no test coverage detected