Skip to content

Commit e777bca

Browse files
committed
Add assert statement
1 parent 05d823b commit e777bca

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_generics.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,4 +365,5 @@ class GenericEntity(GenericProtocol[int]):
365365
def test_generics_with_forward_refs():
366366
"""Type resolution works with forward references."""
367367
converter = cattrs.Converter()
368-
converter.unstructure(GenericClass(42), unstructure_as=GenericClass[int])
368+
dct = converter.unstructure(GenericClass(42), unstructure_as=GenericClass[int])
369+
assert dct == {"t": 42}

0 commit comments

Comments
 (0)