MCPcopy
hub / github.com/celery/celery / test_default_context

Method test_default_context

t/unit/tasks/test_context.py:23–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21class test_Context:
22
23 def test_default_context(self):
24 # A bit of a tautological test, since it uses the same
25 # initializer as the default_context constructor.
26 defaults = dict(default_context, children=[])
27 assert get_context_as_dict(Context()) == defaults
28
29 def test_updated_context(self):
30 expected = dict(default_context)

Callers

nothing calls this directly

Calls 2

ContextClass · 0.90
get_context_as_dictFunction · 0.85

Tested by

no test coverage detected