Verify a batch of exactly 256 commands is accepted.
(api_client, clean_state)
| 133 | |
| 134 | @pytest.mark.integration |
| 135 | def 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 |