MCPcopy
hub / github.com/celery/celery / test_to_local

Method test_to_local

t/unit/utils/test_time.py:225–227  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

223 assert timezone.tz_or_local(timezone.utc)
224
225 def test_to_local(self):
226 assert timezone.to_local(make_aware(datetime.now(_timezone.utc), timezone.utc))
227 assert timezone.to_local(datetime.now(_timezone.utc))
228
229 def test_to_local_fallback(self):
230 assert timezone.to_local_fallback(

Callers

nothing calls this directly

Calls 3

make_awareFunction · 0.90
to_localMethod · 0.45
nowMethod · 0.45

Tested by

no test coverage detected