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

Method test_schema_uses_cache

tests/test_dynamic_api.py:102–107  ·  view source on GitHub ↗

Use cached schema without hitting Relay.

(self, sut: DynamicAPI, mock_conn: MagicMock)

Source from the content-addressed store, hash-verified

100 assert sut._cache.has("6000.2.6f2")
101
102 def test_schema_uses_cache(self, sut: DynamicAPI, mock_conn: MagicMock) -> None:
103 """Use cached schema without hitting Relay."""
104 sut._cache.put("6000.2.6f2", FULL_SCHEMA)
105 result = sut.schema()
106 mock_conn.send_request.assert_not_called()
107 assert result["total"] == 3
108
109 def test_schema_filters_by_namespace(self, sut: DynamicAPI, mock_conn: MagicMock) -> None:
110 """Filter results by namespace prefix."""

Callers

nothing calls this directly

Calls 2

putMethod · 0.80
schemaMethod · 0.80

Tested by

no test coverage detected