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

Function test_instance_with_aware_datetime

tests/test_main.py:23–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22
23def test_instance_with_aware_datetime() -> None:
24 now = pendulum.instance(datetime.now(timezone("Europe/Paris")))
25 assert now.timezone_name == "Europe/Paris"
26
27
28def test_instance_with_aware_datetime_zoneinfo() -> None:

Callers

nothing calls this directly

Calls 3

timezoneFunction · 0.90
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…