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

Method test_schema_sends_cache_all

tests/test_dynamic_api.py:89–94  ·  view source on GitHub ↗

Fetch full schema with cache_all=True.

(self, sut: DynamicAPI, mock_conn: MagicMock)

Source from the content-addressed store, hash-verified

87 """schema() method tests."""
88
89 def test_schema_sends_cache_all(self, sut: DynamicAPI, mock_conn: MagicMock) -> None:
90 """Fetch full schema with cache_all=True."""
91 mock_conn.send_request.return_value = FULL_SCHEMA
92 sut.schema(no_cache=True)
93 params = mock_conn.send_request.call_args[0][1]
94 assert params["cache_all"] is True
95
96 def test_schema_caches_result(self, sut: DynamicAPI, mock_conn: MagicMock) -> None:
97 """Cache schema after Relay fetch."""

Callers

nothing calls this directly

Calls 1

schemaMethod · 0.80

Tested by

no test coverage detected