Offline mode returns cached schema.
(self, sut: DynamicAPI, mock_conn: MagicMock)
| 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.""" |