MCPcopy
hub / github.com/celery/celery / test_standard_tz

Method test_standard_tz

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

Source from the content-addressed store, hash-verified

235class test_make_aware:
236
237 def test_standard_tz(self):
238 tz = tzinfo()
239 wtz = make_aware(datetime.now(_timezone.utc), tz)
240 assert wtz.tzinfo == tz
241
242 def test_tz_when_zoneinfo(self):
243 tz = ZoneInfo('US/Eastern')

Callers

nothing calls this directly

Calls 2

make_awareFunction · 0.90
nowMethod · 0.45

Tested by

no test coverage detected