已推进 60 秒仿真时间的引擎实例(建立初始状态)。
()
| 83 | |
| 84 | @pytest.fixture |
| 85 | def 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 | # --------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected