MCPcopy Index your code
hub / github.com/danielgtaylor/python-betterproto / test_iso_datetime

Function test_iso_datetime

tests/test_features.py:629–638  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

627
628
629def test_iso_datetime():
630 @dataclass
631 class Envelope(betterproto.Message):
632 ts: datetime = betterproto.message_field(1)
633
634 msg = Envelope()
635
636 for _, candidate in enumerate(iso_candidates):
637 msg.from_dict({"ts": candidate})
638 assert isinstance(msg.ts, datetime)
639
640
641def test_iso_datetime_list():

Callers

nothing calls this directly

Calls 2

EnvelopeClass · 0.85
from_dictMethod · 0.45

Tested by

no test coverage detected