MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / test_batch_at_limit

Function test_batch_at_limit

tests/integration/test_batch_api.py:135–144  ·  view source on GitHub ↗

Verify a batch of exactly 256 commands is accepted.

(api_client, clean_state)

Source from the content-addressed store, hash-verified

133
134@pytest.mark.integration
135def test_batch_at_limit(api_client, clean_state):
136 """Verify a batch of exactly 256 commands is accepted."""
137 commands = [{"command": "io.getStatus"}] * 256
138
139 results = api_client.batch(commands, timeout=30.0)
140 assert isinstance(results, list)
141 assert len(results) == 256
142
143 for result in results:
144 assert result.get("success") is True
145
146
147@pytest.mark.integration

Callers

nothing calls this directly

Calls 2

batchMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected