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

Method test_overwrites_existing_cache

tests/test_schema_cache.py:60–66  ·  view source on GitHub ↗
(self, sut: SchemaCache, sample_schema: dict[str, Any])

Source from the content-addressed store, hash-verified

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
69class TestHas:

Callers

nothing calls this directly

Calls 2

putMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected