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

Method test_schema_offline_with_cache

tests/test_dynamic_api.py:137–142  ·  view source on GitHub ↗

Offline mode returns cached schema.

(self, sut: DynamicAPI, mock_conn: MagicMock)

Source from the content-addressed store, hash-verified

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."""
139 sut._cache.put("6000.2.6f2", FULL_SCHEMA)
140 result = sut.schema(offline=True)
141 mock_conn.send_request.assert_not_called()
142 assert result["total"] == 3
143
144 def test_schema_offline_without_cache_raises(self, sut: DynamicAPI, mock_conn: MagicMock) -> None:
145 """Offline mode without cache raises error."""

Callers

nothing calls this directly

Calls 2

putMethod · 0.80
schemaMethod · 0.80

Tested by

no test coverage detected