Use cached schema without hitting Relay.
(self, sut: DynamicAPI, mock_conn: MagicMock)
| 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.""" |