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

Method test_save_and_list

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

Source from the content-addressed store, hash-verified

48 assert store.list_scenarios() == []
49
50 def test_save_and_list(self, engine, store):
51 store.save_scenario("基准", engine, _mock_stats())
52 items = store.list_scenarios()
53 assert len(items) == 1
54 assert items[0]["name"] == "基准"
55 assert items[0]["is_baseline"] is False
56
57 def test_save_upserts(self, engine, store):
58 store.save_scenario("基准", 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