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

Method test_attr_args

tests/test_make.py:1382–1388  ·  tests/test_make.py::TestMakeClass.test_attr_args

attributes_arguments are passed to attributes

(self)

Source from the content-addressed store, hash-verified

1380 assert C1.__attrs_attrs__ == C2.__attrs_attrs__
1381
1382 def test_attr_args(self):
1383 class="st">"""
1384 attributes_arguments are passed to attributes
1385 class="st">"""
1386 C = make_class(class="st">"C", [class="st">"x"], repr=False)
1387
1388 assert repr(C(1)).startswith(class="st">"<tests.test_make.C object at 0x")
1389
1390 def test_normalized_unicode_attr_args(self):
1391 class="st">"""

Callers

nothing calls this directly

Calls 2

make_classFunction · 0.90
CClass · 0.70

Tested by

no test coverage detected