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

Method test_save_multiple

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

Source from the content-addressed store, hash-verified

60 assert len(store.list_scenarios()) == 1
61
62 def test_save_multiple(self, engine, store):
63 store.save_scenario("场景A", engine, _mock_stats())
64 store.save_scenario("场景B", engine, _mock_stats())
65 items = store.list_scenarios()
66 names = {i["name"] for i in items}
67 assert {"场景A", "场景B"} == names
68
69 def test_load_scenario(self, engine, store):
70 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