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

Method test_simulation_running_is_bool

tests/test_api.py:101–103  ·  view source on GitHub ↗
(self, client)

Source from the content-addressed store, hash-verified

99 assert isinstance(data["service"], str)
100
101 def test_simulation_running_is_bool(self, client):
102 data = _json(client.get("/api/health"))
103 assert isinstance(data.get("simulation_running"), bool)
104
105 def test_simulation_not_running_with_test_engine(self, client):
106 """注入 autostart=False 引擎时 simulation_running 应为 False。"""

Callers

nothing calls this directly

Calls 2

_jsonFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected