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

Function test_convert_accept_pendulum_instance

tests/tz/test_timezone.py:218–224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216
217
218def test_convert_accept_pendulum_instance():
219 dt = pendulum.datetime(2016, 8, 7, 12, 53, 54)
220 tz = timezone("Europe/Paris")
221 new = tz.convert(dt)
222
223 assert isinstance(new, pendulum.DateTime)
224 assert_datetime(new, 2016, 8, 7, 14, 53, 54)
225
226
227def test_utcoffset():

Callers

nothing calls this directly

Calls 4

timezoneFunction · 0.90
assert_datetimeFunction · 0.90
datetimeMethod · 0.45
convertMethod · 0.45

Tested by

no test coverage detected