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

Function engine_no_threads

tests/conftest.py:40–45  ·  view source on GitHub ↗

使用固定种子、不启动后台线程的引擎,适合纯功能单测。

()

Source from the content-addressed store, hash-verified

38
39@pytest.fixture
40def engine_no_threads():
41 """使用固定种子、不启动后台线程的引擎,适合纯功能单测。"""
42 eng = create_engine(seed=0, autostart=False)
43 yield eng
44 # 确保即使测试中意外设置了 running=True 也能安全清理
45 eng.running = False
46
47
48@pytest.fixture

Callers

nothing calls this directly

Calls 1

create_engineFunction · 0.90

Tested by

no test coverage detected