Paginate results with limit and offset.
(self, sut: DynamicAPI, mock_conn: MagicMock)
| 127 | assert result["total"] == 1 |
| 128 | |
| 129 | def test_schema_paginates(self, sut: DynamicAPI, mock_conn: MagicMock) -> None: |
| 130 | """Paginate results with limit and offset.""" |
| 131 | sut._cache.put("6000.2.6f2", FULL_SCHEMA) |
| 132 | result = sut.schema(limit=1, offset=0) |
| 133 | assert len(result["methods"]) == 1 |
| 134 | assert result["total"] == 3 |
| 135 | assert result["hasMore"] is True |
| 136 | |
| 137 | def test_schema_offline_with_cache(self, sut: DynamicAPI, mock_conn: MagicMock) -> None: |
| 138 | """Offline mode returns cached schema.""" |