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

Function test_strptime

tests/datetime/test_from_format.py:196–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

194
195
196def test_strptime():
197 d = pendulum.DateTime.strptime("1975-05-21 22:32:11", "%Y-%m-%d %H:%M:%S")
198 assert_datetime(d, 1975, 5, 21, 22, 32, 11)
199 assert isinstance(d, pendulum.DateTime)
200 assert d.timezone_name == "UTC"
201
202
203def test_from_format_2_digit_year():

Callers

nothing calls this directly

Calls 2

assert_datetimeFunction · 0.90
strptimeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…