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

Function stepped_engine

tests/load/test_stress_engine.py:85–90  ·  view source on GitHub ↗

已推进 60 秒仿真时间的引擎实例(建立初始状态)。

()

Source from the content-addressed store, hash-verified

83
84@pytest.fixture
85def stepped_engine():
86 """已推进 60 秒仿真时间的引擎实例(建立初始状态)。"""
87 eng = create_engine(seed=GOLDEN_SEED, autostart=False)
88 advance_engine(eng, total_seconds=60.0, step=10.0)
89 yield eng
90 eng.running = False
91
92
93# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

create_engineFunction · 0.90
advance_engineFunction · 0.90

Tested by

no test coverage detected