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

Function engine_seeded

tests/conftest.py:49–55  ·  view source on GitHub ↗

与 engine_no_threads 相同,但以工厂默认参数创建,供需要两个独立实例的测试使用。

()

Source from the content-addressed store, hash-verified

47
48@pytest.fixture
49def engine_seeded():
50 """与 engine_no_threads 相同,但以工厂默认参数创建,供需要两个独立实例的测试使用。"""
51 a = create_engine(seed=42, autostart=False)
52 b = create_engine(seed=42, autostart=False)
53 yield a, b
54 a.running = False
55 b.running = False
56
57
58@pytest.fixture

Callers

nothing calls this directly

Calls 1

create_engineFunction · 0.90

Tested by

no test coverage detected