MCPcopy Create free account
hub / github.com/Tong89/smartNode / test_save_upserts

Method test_save_upserts

tests/test_store.py:57–60  ·  view source on GitHub ↗
(self, engine, store)

Source from the content-addressed store, hash-verified

55 assert items[0]["is_baseline"] is False
56
57 def test_save_upserts(self, engine, store):
58 store.save_scenario("基准", engine, _mock_stats())
59 store.save_scenario("基准", engine, _mock_stats())
60 assert len(store.list_scenarios()) == 1
61
62 def test_save_multiple(self, engine, store):
63 store.save_scenario("场景A", engine, _mock_stats())

Callers

nothing calls this directly

Calls 3

_mock_statsFunction · 0.85
save_scenarioMethod · 0.80
list_scenariosMethod · 0.80

Tested by

no test coverage detected