MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / test_rfc_3339

Function test_rfc_3339

tests/parsing/test_parsing.py:101–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99
100
101def test_rfc_3339():
102 text = "2016-10-06T12:34:56+05:30"
103
104 parsed = parse(text)
105
106 assert parsed.year == 2016
107 assert parsed.month == 10
108 assert parsed.day == 6
109 assert parsed.hour == 12
110 assert parsed.minute == 34
111 assert parsed.second == 56
112 assert parsed.microsecond == 0
113 assert parsed.utcoffset().total_seconds() == 19800
114
115
116def test_rfc_3339_extended():

Callers

nothing calls this directly

Calls 3

parseFunction · 0.90
utcoffsetMethod · 0.80
total_secondsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…