()
| 65 | |
| 66 | |
| 67 | def 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 | |
| 77 | def test_default_unbatch_not_implemented(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…