MCPcopy
hub / github.com/celery/celery / test_utcoffset

Method test_utcoffset

t/unit/utils/test_time.py:352–357  ·  view source on GitHub ↗
(self, patching)

Source from the content-addressed store, hash-verified

350class test_utcoffset:
351
352 def test_utcoffset(self, patching):
353 _time = patching('celery.utils.time._time')
354 _time.daylight = True
355 assert utcoffset(time=_time) is not None
356 _time.daylight = False
357 assert utcoffset(time=_time) is not None
358
359
360class test_get_exponential_backoff_interval:

Callers

nothing calls this directly

Calls 2

utcoffsetFunction · 0.90
patchingFunction · 0.85

Tested by

no test coverage detected