MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / test_schema_paginates

Method test_schema_paginates

tests/test_dynamic_api.py:129–135  ·  view source on GitHub ↗

Paginate results with limit and offset.

(self, sut: DynamicAPI, mock_conn: MagicMock)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 2

putMethod · 0.80
schemaMethod · 0.80

Tested by

no test coverage detected