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

Function test_from_format

tests/datetime/test_from_format.py:152–156  ·  view source on GitHub ↗
(text, fmt, expected, now)

Source from the content-addressed store, hash-verified

150 ],
151)
152def test_from_format(text, fmt, expected, now):
153 now = pendulum.datetime(2015, 11, 12) if now is None else pendulum.parse(now)
154
155 with pendulum.travel_to(now, freeze=True):
156 assert pendulum.from_format(text, fmt).isoformat() == expected
157
158
159@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

parseMethod · 0.80
datetimeMethod · 0.45
travel_toMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…