MCPcopy
hub / github.com/celery/celery / test_when_datetime

Method test_when_datetime

t/unit/app/test_exceptions.py:9–11  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7class test_Retry:
8
9 def test_when_datetime(self):
10 x = Retry('foo', KeyError(), when=datetime.now(timezone.utc))
11 assert x.humanize()
12
13 def test_pickleable(self):
14 x = Retry('foo', KeyError(), when=datetime.now(timezone.utc))

Callers

nothing calls this directly

Calls 3

humanizeMethod · 0.95
RetryClass · 0.90
nowMethod · 0.45

Tested by

no test coverage detected