每次测试独立引擎(seed=GOLDEN_SEED, autostart=False)。
()
| 75 | |
| 76 | @pytest.fixture |
| 77 | def isolated_engine(): |
| 78 | """每次测试独立引擎(seed=GOLDEN_SEED, autostart=False)。""" |
| 79 | eng = create_engine(seed=GOLDEN_SEED, autostart=False) |
| 80 | yield eng |
| 81 | eng.running = False |
| 82 | |
| 83 | |
| 84 | @pytest.fixture |
nothing calls this directly
no test coverage detected