MCPcopy
hub / github.com/celery/celery / test_to_local_fallback

Method test_to_local_fallback

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

Source from the content-addressed store, hash-verified

227 assert timezone.to_local(datetime.now(_timezone.utc))
228
229 def test_to_local_fallback(self):
230 assert timezone.to_local_fallback(
231 make_aware(datetime.now(_timezone.utc), timezone.utc))
232 assert timezone.to_local_fallback(datetime.now(_timezone.utc))
233
234
235class test_make_aware:

Callers

nothing calls this directly

Calls 3

make_awareFunction · 0.90
to_local_fallbackMethod · 0.80
nowMethod · 0.45

Tested by

no test coverage detected