(self, sut: SchemaCache, sample_schema: dict[str, Any])
| 58 | assert cache_dir.exists() |
| 59 | |
| 60 | def test_overwrites_existing_cache(self, sut: SchemaCache, sample_schema: dict[str, Any]) -> None: |
| 61 | sut.put("6000.2.6f2", sample_schema) |
| 62 | updated = {**sample_schema, "total": 999} |
| 63 | sut.put("6000.2.6f2", updated) |
| 64 | result = sut.get("6000.2.6f2") |
| 65 | assert result is not None |
| 66 | assert result["total"] == 999 |
| 67 | |
| 68 | |
| 69 | class TestHas: |