MCPcopy Create free account
hub / github.com/celery/celery / make_thing

Method make_thing

t/unit/test_generics.py:51–52  ·  view source on GitHub ↗
(int_count)

Source from the content-addressed store, hash-verified

49 def test_FallbackContext__class_getitem__(self):
50 @contextlib.contextmanager
51 def make_thing(int_count):
52 yield f'dynamic_thing_{int_count}'
53
54 thing_manager = FallbackContext[str, [int]]('static_thing', make_thing)
55 assert isinstance(thing_manager, FallbackContext), "FallbackContext can be instantiated with type parameters"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected