MCPcopy Index your code
hub / github.com/coleifer/huey / test_pipeline_tuple

Method test_pipeline_tuple

huey/tests/test_api.py:2124–2131  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2122
2123class TestTaskChaining(BaseTestCase):
2124 def test_pipeline_tuple(self):
2125 @self.huey.task()
2126 def fib(a, b=1):
2127 a, b = a + b, a
2128 return a, b
2129
2130 pipe = fib.s(1).then(fib).then(fib).then(fib)
2131 self.assertPipe(pipe, [(2, 1), (3, 2), (5, 3), (8, 5)])
2132
2133 def test_pipeline_dict(self):
2134 @self.huey.task()

Callers

nothing calls this directly

Calls 3

assertPipeMethod · 0.95
sMethod · 0.80
thenMethod · 0.45

Tested by

no test coverage detected