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

Function test_instance_with_aware_datetime_zoneinfo

tests/test_main.py:28–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27
28def test_instance_with_aware_datetime_zoneinfo() -> None:
29 now = pendulum.instance(datetime.now(zoneinfo.ZoneInfo("Europe/Paris")))
30 assert now.timezone_name == "Europe/Paris"
31
32
33def test_instance_with_aware_datetime_any_tzinfo() -> None:

Callers

nothing calls this directly

Calls 2

nowMethod · 0.80
instanceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…