Skip to content

Commit

Permalink
add missing test
Browse files Browse the repository at this point in the history
  • Loading branch information
provinzkraut committed Feb 2, 2025
1 parent 8fe63fe commit cde3fe9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/test_contrib/test_msgspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ class TestStruct(Struct):
def computed(self) -> str:
return "i am computed"

@property
def _private_computed(self) -> str:
return ""

field_defs = list(MsgspecDTO.generate_field_definitions(TestStruct))
assert field_defs[0].model_name == "TestStruct"
for field_def, exp in itertools.zip_longest(expected_field_defs, field_defs, fillvalue=None):
Expand Down

0 comments on commit cde3fe9

Please sign in to comment.