Skip to content

Commit 4fd5c31

Browse files
committed
Add test for attrs.astuple
1 parent b0d6a6d commit 4fd5c31

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/test_next_gen.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,3 +368,13 @@ class D(B, C):
368368
d = D()
369369

370370
assert d.x == d.xx()
371+
372+
373+
class TestAsTuple:
374+
def test_smoke(self):
375+
"""
376+
`attrs.astuple` only changes defaults, so we just call it and compare.
377+
"""
378+
inst = C("foo", 42)
379+
380+
assert attrs.astuple(inst) == _attr.astuple(inst)

0 commit comments

Comments
 (0)