diff --git a/tests/test_make.py b/tests/test_make.py index eba43b35b..3f8a39b61 100644 --- a/tests/test_make.py +++ b/tests/test_make.py @@ -1738,6 +1738,12 @@ class TestInitAlias: """ def test_default_and_specify(self): + """ + alias is present on the Attributes returned from attr.fields. + + If left unspecified, it defaults to standard private-attribute + handling. If specified, it passes through the explicit alias. + """ # alias is None by default on _CountingAttr default_counting = attr.ib() @@ -1796,6 +1802,10 @@ class Cases: assert example.__dunder_override__ == 6 def test_evolve(self): + """ + attr.evolve uses Attribute.alias to determine parameter names. + """ + @attr.s class EvolveCase: _override = attr.ib(alias="_override")