MCPcopy
hub / github.com/celery/celery / test_tz_or_local

Method test_tz_or_local

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

Source from the content-addressed store, hash-verified

219 assert timezone.get_timezone('UTC')
220
221 def test_tz_or_local(self):
222 assert timezone.tz_or_local() == timezone.local
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))

Callers

nothing calls this directly

Calls 1

tz_or_localMethod · 0.80

Tested by

no test coverage detected