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

Function test_instance_with_aware_time

tests/test_main.py:51–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49
50
51def test_instance_with_aware_time() -> None:
52 dt = pendulum.instance(time(12, 34, 56, 123456, tzinfo=timezone("Europe/Paris")))
53
54 assert isinstance(dt, pendulum.Time)
55 assert isinstance(dt.tzinfo, Timezone)
56 assert dt.tzinfo.name == "Europe/Paris"
57
58
59def test_safe_timezone_with_tzinfo_objects() -> None:

Callers

nothing calls this directly

Calls 3

timezoneFunction · 0.90
timeFunction · 0.85
instanceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…