Skip to content

Commit 1664c1b

Browse files
committed
Add test docstrings.
1 parent 37bc6ef commit 1664c1b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_make.py

+10
Original file line numberDiff line numberDiff line change
@@ -1738,6 +1738,12 @@ class TestInitAlias:
17381738
"""
17391739

17401740
def test_default_and_specify(self):
1741+
"""
1742+
alias is present on the Attributes returned from attr.fields.
1743+
1744+
If left unspecified, it defaults to standard private-attribute handling.
1745+
If specified, it passes through the explicit alias.
1746+
"""
17411747

17421748
# alias is None by default on _CountingAttr
17431749
default_counting = attr.ib()
@@ -1796,6 +1802,10 @@ class Cases:
17961802
assert example.__dunder_override__ == 6
17971803

17981804
def test_evolve(self):
1805+
"""
1806+
attr.evolve uses Attribute.alias to determine parameter names.
1807+
"""
1808+
17991809
@attr.s
18001810
class EvolveCase:
18011811
_override = attr.ib(alias="_override")

0 commit comments

Comments
 (0)