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

Method assertPipe

huey/tests/test_api.py:2199–2207  ·  view source on GitHub ↗
(self, pipeline, expected)

Source from the content-addressed store, hash-verified

2197 self.assertPipe(p1, [3, 6, 15])
2198
2199 def assertPipe(self, pipeline, expected):
2200 results = self.huey.enqueue(pipeline)
2201 for _ in range(len(results)):
2202 self.assertEqual(len(self.huey), 1)
2203 self.execute_next()
2204
2205 self.assertEqual(len(self.huey), 0)
2206 self.assertEqual(len(results), len(expected))
2207 self.assertEqual([r() for r in results], expected)
2208
2209 def test_error_callback(self):
2210 state = []

Callers 5

test_pipeline_tupleMethod · 0.95
test_pipeline_dictMethod · 0.95
test_partialMethod · 0.95

Calls 2

execute_nextMethod · 0.80
enqueueMethod · 0.45

Tested by

no test coverage detected