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

Method test_fields

tests/test_make.py:1595–1599  ·  tests/test_make.py::TestFields.test_fields

Returns a list of `Attribute`a.

(self, C)

Source from the content-addressed store, hash-verified

1593
1594 @given(simple_classes())
1595 def test_fields(self, C):
1596 class="st">"""
1597 Returns a list of `Attribute`a.
1598 class="st">"""
1599 assert all(isinstance(a, Attribute) for a in fields(C))
1600
1601 @given(simple_classes())
1602 def test_fields_properties(self, C):

Callers

nothing calls this directly

Calls 1

fieldsFunction · 0.90

Tested by

no test coverage detected