MCPcopy
hub / github.com/Lightning-AI/LitServe / test_default_batch_unbatch

Function test_default_batch_unbatch

tests/unit/test_litapi.py:67–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65
66
67def test_default_batch_unbatch():
68 api = TestDefaultBatchedAPI(max_batch_size=4)
69 api.request_timeout = 30
70 api.pre_setup(spec=None)
71 inputs = [1, 2, 3, 4]
72 output = api.batch(inputs)
73 assert output == inputs, "Default batch should not change input"
74 assert api.unbatch(output) == inputs, "Default unbatch should not change input"
75
76
77def test_default_unbatch_not_implemented():

Callers

nothing calls this directly

Calls 4

pre_setupMethod · 0.45
batchMethod · 0.45
unbatchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…